diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-07-07 19:09:14 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-07-07 19:09:14 +0000 |
commit | 3039b99697639479bf7ce1a447cb0b9a580a7606 (patch) | |
tree | 9678f3370ec1ae47df5559de26c02c9762121ac3 /tools/llvm-ranlib/llvm-ranlib.cpp | |
parent | 215b48f9a8bfbe4a50637697a8a4e0820f33c5a3 (diff) |
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/llvm-ranlib.cpp')
-rw-r--r-- | tools/llvm-ranlib/llvm-ranlib.cpp | 3 |
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); |