[llvm-commits] CVS: llvm/tools/llvm-ar/llvm-ar.cpp

Reid Spencer reid at x10sys.com
Sat Nov 20 10:10:35 PST 2004



Changes in directory llvm/tools/llvm-ar:

llvm-ar.cpp updated: 1.19 -> 1.20
---
Log message:

The Archive class now has differentiation for BSD4.4 and SVR4 style archive
symbol tables. Adjust our usage to compensate.


---
Diffs of the changes:  (+2 -6)

Index: llvm/tools/llvm-ar/llvm-ar.cpp
diff -u llvm/tools/llvm-ar/llvm-ar.cpp:1.19 llvm/tools/llvm-ar/llvm-ar.cpp:1.20
--- llvm/tools/llvm-ar/llvm-ar.cpp:1.19	Tue Nov 16 00:41:09 2004
+++ llvm/tools/llvm-ar/llvm-ar.cpp	Sat Nov 20 12:01:22 2004
@@ -339,8 +339,8 @@
         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 @@
           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






More information about the llvm-commits mailing list