summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-07-07 19:09:14 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-07-07 19:09:14 +0000
commitcfa807ab31e8dbb673bfba518e26b80239b5396c (patch)
tree2a1ddd6fcfec5c99881a6d889f27d2a09ac6826f /llvm/tools
parentf976a5c8547743157995c9e6428b866f951960fd (diff)
downloadbcm5719-llvm-cfa807ab31e8dbb673bfba518e26b80239b5396c.tar.gz
bcm5719-llvm-cfa807ab31e8dbb673bfba518e26b80239b5396c.zip
Remove EH use from the Archive library and adjust its users accordingly.
llvm-svn: 29066
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llvm-ar/llvm-ar.cpp16
-rw-r--r--llvm/tools/llvm-ranlib/llvm-ranlib.cpp3
2 files changed, 14 insertions, 5 deletions
diff --git a/llvm/tools/llvm-ar/llvm-ar.cpp b/llvm/tools/llvm-ar/llvm-ar.cpp
index fdcc9e6404f..8bc9e048daf 100644
--- a/llvm/tools/llvm-ar/llvm-ar.cpp
+++ b/llvm/tools/llvm-ar/llvm-ar.cpp
@@ -484,7 +484,9 @@ void doDelete() {
}
// We're done editting, reconstruct the archive.
- TheArchive->writeToDisk(SymTable,TruncateNames,Compression);
+ std::string errmsg;
+ if (!TheArchive->writeToDisk(SymTable,TruncateNames,Compression,&errmsg))
+ throw errmsg;
if (ReallyVerbose)
printSymbolTable();
}
@@ -536,7 +538,9 @@ void doMove() {
}
// We're done editting, reconstruct the archive.
- TheArchive->writeToDisk(SymTable,TruncateNames,Compression);
+ std::string errmsg;
+ if (!TheArchive->writeToDisk(SymTable,TruncateNames,Compression,&errmsg))
+ throw errmsg;
if (ReallyVerbose)
printSymbolTable();
}
@@ -555,7 +559,9 @@ void doQuickAppend() {
}
// We're done editting, reconstruct the archive.
- TheArchive->writeToDisk(SymTable,TruncateNames,Compression);
+ std::string errmsg;
+ if (!TheArchive->writeToDisk(SymTable,TruncateNames,Compression,&errmsg))
+ throw errmsg;
if (ReallyVerbose)
printSymbolTable();
}
@@ -642,7 +648,9 @@ void doReplaceOrInsert() {
}
// We're done editting, reconstruct the archive.
- TheArchive->writeToDisk(SymTable,TruncateNames,Compression);
+ std::string errmsg;
+ if (!TheArchive->writeToDisk(SymTable,TruncateNames,Compression,&errmsg))
+ throw errmsg;
if (ReallyVerbose)
printSymbolTable();
}
diff --git a/llvm/tools/llvm-ranlib/llvm-ranlib.cpp b/llvm/tools/llvm-ranlib/llvm-ranlib.cpp
index 1c372d5f7df..a3cdc4119d3 100644
--- a/llvm/tools/llvm-ranlib/llvm-ranlib.cpp
+++ b/llvm/tools/llvm-ranlib/llvm-ranlib.cpp
@@ -74,7 +74,8 @@ int main(int argc, char **argv) {
if (!TheArchive)
throw err_msg;
- TheArchive->writeToDisk(true, false, false );
+ if (!TheArchive->writeToDisk(true, false, false, &err_msg ))
+ throw err_msg;
if (Verbose)
printSymbolTable(TheArchive);
OpenPOWER on IntegriCloud