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 | 7a324864834767c3ca092b89975bf0ac463bd252 (patch) | |
| tree | 7fd86e2396a07a2779e0f4e0230bf483ec14c06f /llvm/lib/Bytecode/Archive/Archive.cpp | |
| parent | e1b2aabf101d0dc2c283bcaf9d669fa9dd224036 (diff) | |
| download | bcm5719-llvm-7a324864834767c3ca092b89975bf0ac463bd252.tar.gz bcm5719-llvm-7a324864834767c3ca092b89975bf0ac463bd252.zip | |
Distinguish between BSD4.4 and SVR4 symbol tables
llvm-svn: 18044
Diffstat (limited to 'llvm/lib/Bytecode/Archive/Archive.cpp')
| -rw-r--r-- | llvm/lib/Bytecode/Archive/Archive.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/llvm/lib/Bytecode/Archive/Archive.cpp b/llvm/lib/Bytecode/Archive/Archive.cpp index a3fb534c9c3..8e405907e62 100644 --- a/llvm/lib/Bytecode/Archive/Archive.cpp +++ b/llvm/lib/Bytecode/Archive/Archive.cpp @@ -65,11 +65,17 @@ void ArchiveMember::replaceWith(const sys::Path& newFile) { data = 0; path = newFile; - // Foreign symbol tables have an empty name - if (path.get() == ARFILE_SYMTAB_NAME) - flags |= ForeignSymbolTableFlag; + // SVR4 symbol tables have an empty name + if (path.get() == ARFILE_SVR4_SYMTAB_NAME) + flags |= SVR4SymbolTableFlag; else - flags &= ~ForeignSymbolTableFlag; + flags &= ~SVR4SymbolTableFlag; + + // BSD4.4 symbol tables have a special name + if (path.get() == ARFILE_BSD4_SYMTAB_NAME) + flags |= BSD4SymbolTableFlag; + else + flags &= ~BSD4SymbolTableFlag; // LLVM symbol tables have a very specific name if (path.get() == ARFILE_LLVM_SYMTAB_NAME) |

