summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-11-20 18:01:22 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-11-20 18:01:22 +0000
commit0fdd363a26b0c35d2e4b9b0e9831b14d79a549dc (patch)
tree2f85d6318a10b7dcd9199dda2f573aa56dafdd9d /tools
parentbab98e4a32db0838d5e9bca743ba399fd8de7602 (diff)
downloadllvm-0fdd363a26b0c35d2e4b9b0e9831b14d79a549dc.tar.gz
llvm-0fdd363a26b0c35d2e4b9b0e9831b14d79a549dc.tar.bz2
llvm-0fdd363a26b0c35d2e4b9b0e9831b14d79a549dc.tar.xz
The Archive class now has differentiation for BSD4.4 and SVR4 style archive
symbol tables. Adjust our usage to compensate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18046 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-ar/llvm-ar.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/llvm-ar/llvm-ar.cpp b/tools/llvm-ar/llvm-ar.cpp
index 1a4d75f46d..0707fd66e7 100644
--- a/tools/llvm-ar/llvm-ar.cpp
+++ b/tools/llvm-ar/llvm-ar.cpp
@@ -339,8 +339,8 @@ void doPrint() {
const char* data = reinterpret_cast<const char*>(I->getData());
// Skip things that don't make sense to print
- if (I->isLLVMSymbolTable() || I->isForeignSymbolTable() ||
- (!DontSkipBytecode &&
+ if (I->isLLVMSymbolTable() || I->isSVR4SymbolTable() ||
+ I->isBSD4SymbolTable() || (!DontSkipBytecode &&
(I->isBytecode() || I->isCompressedBytecode())))
continue;
@@ -396,10 +396,6 @@ void doDisplayTable() {
std::cout << "b";
else if (I->isCompressedBytecode())
std::cout << "B";
- else if (I->isForeignSymbolTable())
- std::cout << "s";
- else if (I->isLLVMSymbolTable())
- std::cout << "S";
else if (I->isCompressed())
std::cout << "Z";
else