diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-11-20 07:29:40 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-11-20 07:29:40 +0000 |
commit | 9a29db43a7a906162b0fde012b5d16f3b0895023 (patch) | |
tree | 06fa06b97a97438781c98d21ac2bb84dcb7ac447 /include/llvm/Bytecode | |
parent | e651c954aade4d23f4976af6ade3f767ca387976 (diff) | |
download | external_llvm-9a29db43a7a906162b0fde012b5d16f3b0895023.zip external_llvm-9a29db43a7a906162b0fde012b5d16f3b0895023.tar.gz external_llvm-9a29db43a7a906162b0fde012b5d16f3b0895023.tar.bz2 |
Distinguish between BSD4.4 and SVR4 symbol tables
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18044 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bytecode')
-rw-r--r-- | include/llvm/Bytecode/Archive.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/include/llvm/Bytecode/Archive.h b/include/llvm/Bytecode/Archive.h index 943d979..41c9311 100644 --- a/include/llvm/Bytecode/Archive.h +++ b/include/llvm/Bytecode/Archive.h @@ -49,12 +49,13 @@ class ArchiveMember { /// 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 @@ class ArchiveMember { /// @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. |