finishing touches of bytecode -> bitcode changes. also unbreak Windows
authorGabor Greif <ggreif@gmail.com>
Fri, 6 Jul 2007 20:28:40 +0000 (20:28 +0000)
committerGabor Greif <ggreif@gmail.com>
Fri, 6 Jul 2007 20:28:40 +0000 (20:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37950 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Bitcode/Archive.h
lib/Archive/ArchiveReader.cpp
lib/System/Win32/Path.inc
tools/llvm-stub/llvm-stub.c

index 70fc936e9db81d0bac68f406e2dd8859bb27d3f6..980bd074ef74c6113528dd6caf93310e79a30597 100644 (file)
@@ -51,7 +51,7 @@ class ArchiveMember {
       SVR4SymbolTableFlag = 2,     ///< Member is a SVR4 symbol table
       BSD4SymbolTableFlag = 4,     ///< Member is a BSD4 symbol table
       LLVMSymbolTableFlag = 8,     ///< Member is an LLVM symbol table
-      BitcodeFlag = 16,            ///< Member is uncompressed bytecode
+      BitcodeFlag = 16,            ///< Member is bitcode
       HasPathFlag = 64,            ///< Member has a full or partial path
       HasLongFilenameFlag = 128,   ///< Member uses the long filename syntax
       StringTableFlag = 256        ///< Member is an ar(1) format string table
@@ -109,8 +109,7 @@ class ArchiveMember {
     /// @brief Get the data content of the archive member
     const void* getData() const { return data; }
 
-    /// This method determines if the member is a regular compressed file. Note
-    /// that compressed bytecode files will yield "false" for this method.
+    /// This method determines if the member is a regular compressed file.
     /// @returns true iff the archive member is a compressed regular file.
     /// @brief Determine if the member is a compressed regular file.
     bool isCompressed() const { return flags&CompressedFlag; }
@@ -131,8 +130,8 @@ class ArchiveMember {
     /// @brief Determine if this member is the ar(1) string table.
     bool isStringTable() const { return flags&StringTableFlag; }
 
-    /// @returns true iff the archive member is an uncompressed bytecode file.
-    /// @brief Determine if this member is a bytecode file.
+    /// @returns true iff the archive member is a bitcode file.
+    /// @brief Determine if this member is a bitcode file.
     bool isBitcode() const { return flags&BitcodeFlag; }
 
     /// @returns true iff the file name contains a path (directory) component.
index c8ffcd6863ac5ae924d2570f5c924b3a8ddec3ee..529b6527075c50be1195699ae884b47a1255172d 100644 (file)
@@ -204,7 +204,7 @@ Archive::parseMemberHeader(const char*& At, const char* End, std::string* error)
       break;
   }
 
-  // Determine if this is a bytecode file
+  // Determine if this is a bitcode file
   switch (sys::IdentifyFileType(At, 4)) {
     case sys::Bitcode_FileType:
       flags |= ArchiveMember::BitcodeFlag;
index 67f16a75b60eb91ff88cd0e498ac62b1b24cdc25..994bc671c13f85802838c4224d989ea8bb866c87 100644 (file)
@@ -189,7 +189,7 @@ Path::GetSystemLibraryPaths(std::vector<sys::Path>& Paths) {
 }
 
 void
-Path::GetBytecodeLibraryPaths(std::vector<sys::Path>& Paths) {
+Path::GetBitcodeLibraryPaths(std::vector<sys::Path>& Paths) {
   char * env_var = getenv("LLVM_LIB_SEARCH_PATH");
   if (env_var != 0) {
     getPathList(env_var,Paths);
index 10b025633f8a3d9c2401688a47e9ec0972b48be7..809a53227788081e97de1e94c66e69522d73c13f 100644 (file)
@@ -1,4 +1,4 @@
-/*===- llvm-stub.c - Stub executable to run llvm bytecode files -----------===//
+/*===- llvm-stub.c - Stub executable to run llvm bitcode files -----------===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
@@ -8,9 +8,9 @@
 //===----------------------------------------------------------------------===//
 //
 // This tool is used by the gccld program to enable transparent execution of
-// bytecode files by the user.  Specifically, gccld outputs two files when asked
+// bitcode files by the user.  Specifically, gccld outputs two files when asked
 // to compile a <program> file:
-//    1. It outputs the LLVM bytecode file to <program>.bc
+//    1. It outputs the LLVM bitcode file to <program>.bc
 //    2. It outputs a stub executable that runs lli on <program>.bc
 //
 // This allows the end user to just say ./<program> and have the JIT executed