diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-05 04:19:32 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-05 04:19:32 +0000 |
commit | 46312e8e72e34c9aa8585e584c002937c5098572 (patch) | |
tree | d73d564137b1e4c13f44f904bbdb75d53a86eaeb /llvm/tools/llvm-ar/llvm-ar.cpp | |
parent | 6cc2dc713e61f1795e913fd95b535e5c534189cb (diff) | |
download | bcm5719-llvm-46312e8e72e34c9aa8585e584c002937c5098572.tar.gz bcm5719-llvm-46312e8e72e34c9aa8585e584c002937c5098572.zip |
Don't treat bitcode files specially in llvm-ar.
We really want bitcode files to behave as regular object files in archives, so
we don't need to track that a member is bitcode.
llvm-svn: 185681
Diffstat (limited to 'llvm/tools/llvm-ar/llvm-ar.cpp')
-rw-r--r-- | llvm/tools/llvm-ar/llvm-ar.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/llvm/tools/llvm-ar/llvm-ar.cpp b/llvm/tools/llvm-ar/llvm-ar.cpp index 23b3df3d3b2..80bc21ae5cb 100644 --- a/llvm/tools/llvm-ar/llvm-ar.cpp +++ b/llvm/tools/llvm-ar/llvm-ar.cpp @@ -99,7 +99,6 @@ bool AddBefore = false; ///< 'b' modifier bool Create = false; ///< 'c' modifier bool TruncateNames = false; ///< 'f' modifier bool InsertBefore = false; ///< 'i' modifier -bool DontSkipBitcode = false; ///< 'k' modifier bool UseCount = false; ///< 'N' modifier bool OriginalDates = false; ///< 'o' modifier bool FullPath = false; ///< 'P' modifier @@ -219,7 +218,6 @@ ArchiveOperation parseCommandLine() { case 'x': ++NumOperations; Operation = Extract; break; case 'c': Create = true; break; case 'f': TruncateNames = true; break; - case 'k': DontSkipBitcode = true; break; case 'l': /* accepted but unused */ break; case 'o': OriginalDates = true; break; case 's': break; // Ignore for now. @@ -323,8 +321,7 @@ bool doPrint(std::string* ErrMsg) { const char* data = reinterpret_cast<const char*>(I->getData()); // Skip things that don't make sense to print - if (I->isSVR4SymbolTable() || - I->isBSD4SymbolTable() || (!DontSkipBitcode && I->isBitcode())) + if (I->isSVR4SymbolTable() || I->isBSD4SymbolTable()) continue; if (Verbose) @@ -373,10 +370,7 @@ doDisplayTable(std::string* ErrMsg) { if (Verbose) { // FIXME: Output should be this format: // Zrw-r--r-- 500/ 500 525 Nov 8 17:42 2004 Makefile - if (I->isBitcode()) - outs() << "b"; - else - outs() << " "; + outs() << " "; unsigned mode = I->getMode(); printMode((mode >> 6) & 007); printMode((mode >> 3) & 007); |