From: Reid Spencer Date: Fri, 25 Aug 2006 05:28:17 +0000 (+0000) Subject: Fix a bug caused by change in the interface of Archive::writeToDisk. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=09069b3bf57df0103f3be3c7cb6e61680c857ca1;p=oota-llvm.git Fix a bug caused by change in the interface of Archive::writeToDisk. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29869 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-ar/llvm-ar.cpp b/tools/llvm-ar/llvm-ar.cpp index 55a60a331f4..7f13bf26775 100644 --- a/tools/llvm-ar/llvm-ar.cpp +++ b/tools/llvm-ar/llvm-ar.cpp @@ -511,7 +511,7 @@ doDelete(std::string* ErrMsg) { } // We're done editting, reconstruct the archive. - if (!TheArchive->writeToDisk(SymTable,TruncateNames,Compression,ErrMsg)) + if (TheArchive->writeToDisk(SymTable,TruncateNames,Compression,ErrMsg)) return true; if (ReallyVerbose) printSymbolTable(); @@ -566,7 +566,7 @@ doMove(std::string* ErrMsg) { } // We're done editting, reconstruct the archive. - if (!TheArchive->writeToDisk(SymTable,TruncateNames,Compression,ErrMsg)) + if (TheArchive->writeToDisk(SymTable,TruncateNames,Compression,ErrMsg)) return true; if (ReallyVerbose) printSymbolTable(); @@ -591,7 +591,7 @@ doQuickAppend(std::string* ErrMsg) { } // We're done editting, reconstruct the archive. - if (!TheArchive->writeToDisk(SymTable,TruncateNames,Compression,ErrMsg)) + if (TheArchive->writeToDisk(SymTable,TruncateNames,Compression,ErrMsg)) return true; if (ReallyVerbose) printSymbolTable(); @@ -688,7 +688,7 @@ doReplaceOrInsert(std::string* ErrMsg) { } // We're done editting, reconstruct the archive. - if (!TheArchive->writeToDisk(SymTable,TruncateNames,Compression,ErrMsg)) + if (TheArchive->writeToDisk(SymTable,TruncateNames,Compression,ErrMsg)) return true; if (ReallyVerbose) printSymbolTable();