From 3039b99697639479bf7ce1a447cb0b9a580a7606 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Fri, 7 Jul 2006 19:09:14 +0000 Subject: 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 --- tools/llvm-ranlib/llvm-ranlib.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/llvm-ranlib/llvm-ranlib.cpp') 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); -- cgit v1.2.3-70-g09d2