[llvm-commits] CVS: llvm/include/llvm/Bytecode/Archive.h
Reid Spencer
reid at x10sys.com
Fri Nov 19 23:29:50 PST 2004
Changes in directory llvm/include/llvm/Bytecode:
Archive.h updated: 1.7 -> 1.8
---
Log message:
Distinguish between BSD4.4 and SVR4 symbol tables
---
Diffs of the changes: (+14 -9)
Index: llvm/include/llvm/Bytecode/Archive.h
diff -u llvm/include/llvm/Bytecode/Archive.h:1.7 llvm/include/llvm/Bytecode/Archive.h:1.8
--- llvm/include/llvm/Bytecode/Archive.h:1.7 Thu Nov 18 21:18:22 2004
+++ llvm/include/llvm/Bytecode/Archive.h Sat Nov 20 01:29:40 2004
@@ -49,12 +49,13 @@
/// access to the flags. The flags are not user settable.
enum Flags {
CompressedFlag = 1, ///< Member is a normal compressed file
- ForeignSymbolTableFlag = 2, ///< Member is a foreign symbol table
- LLVMSymbolTableFlag = 4, ///< Member is an LLVM symbol table
- BytecodeFlag = 8, ///< Member is uncompressed bytecode
- CompressedBytecodeFlag = 16, ///< Member is compressed bytecode
- HasPathFlag = 32, ///< Member has a full or partial path
- HasLongFilenameFlag = 64, ///< Member uses the long filename syntax
+ SVR4SymbolTableFlag = 2, ///< Member is a SVR4 symbol table
+ BSD4SymbolTableFlag = 4, ///< Member is a BSD4 symbol table
+ LLVMSymbolTableFlag = 8, ///< Member is an LLVM symbol table
+ BytecodeFlag = 16, ///< Member is uncompressed bytecode
+ CompressedBytecodeFlag = 32, ///< Member is compressed bytecode
+ 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
};
@@ -117,9 +118,13 @@
/// @brief Determine if the member is a compressed regular file.
bool isCompressed() const { return flags&CompressedFlag; }
- /// @returns true iff the member is a foreign (non-LLVM) symbol table
- /// @brief Determine if this member is a foreign symbol table.
- bool isForeignSymbolTable() const { return flags&ForeignSymbolTableFlag; }
+ /// @returns true iff the member is a SVR4 (non-LLVM) symbol table
+ /// @brief Determine if this member is a SVR4 symbol table.
+ bool isSVR4SymbolTable() const { return flags&SVR4SymbolTableFlag; }
+
+ /// @returns true iff the member is a BSD4.4 (non-LLVM) symbol table
+ /// @brief Determine if this member is a BSD4.4 symbol table.
+ bool isBSD4SymbolTable() const { return flags&BSD4SymbolTableFlag; }
/// @returns true iff the archive member is the LLVM symbol table
/// @brief Determine if this member is the LLVM symbol table.
More information about the llvm-commits
mailing list