summaryrefslogtreecommitdiff
path: root/tools/llvm-ranlib
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
commit3039b99697639479bf7ce1a447cb0b9a580a7606 (patch)
tree9678f3370ec1ae47df5559de26c02c9762121ac3 /tools/llvm-ranlib
parent215b48f9a8bfbe4a50637697a8a4e0820f33c5a3 (diff)
downloadllvm-3039b99697639479bf7ce1a447cb0b9a580a7606.tar.gz
llvm-3039b99697639479bf7ce1a447cb0b9a580a7606.tar.bz2
llvm-3039b99697639479bf7ce1a447cb0b9a580a7606.tar.xz
Remove EH use from the Archive library and adjust its users accordingly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29066 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ranlib')
-rw-r--r--tools/llvm-ranlib/llvm-ranlib.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/llvm-ranlib/llvm-ranlib.cpp b/tools/llvm-ranlib/llvm-ranlib.cpp
index 1c372d5f7d..a3cdc4119d 100644
--- a/tools/llvm-ranlib/llvm-ranlib.cpp
+++ b/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);