llvm-ld doesn't throw.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84819 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2009-10-22 00:52:28 +00:00
parent 42a8832ff7
commit 316e3268a8
3 changed files with 172 additions and 179 deletions

View File

@@ -1,5 +1,4 @@
set(LLVM_LINK_COMPONENTS ipo scalaropts linker archive bitwriter)
set(LLVM_REQUIRES_EH 1)
add_llvm_tool(llvm-ld
Optimize.cpp

View File

@@ -11,6 +11,5 @@ LEVEL = ../..
TOOLNAME = llvm-ld
LINK_COMPONENTS = ipo scalaropts linker archive bitwriter
REQUIRES_EH := 1
include $(LEVEL)/Makefile.common

View File

@@ -513,7 +513,7 @@ int main(int argc, char **argv, char **envp) {
LLVMContext &Context = getGlobalContext();
llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
try {
// Initial global variable above for convenience printing of program name.
progname = sys::Path(argv[0]).getBasename();
@@ -708,11 +708,6 @@ int main(int argc, char **argv, char **envp) {
if (sys::Path(BitcodeOutputFilename).makeReadableOnDisk(&ErrMsg))
PrintAndExit(ErrMsg);
}
} catch (const std::string& msg) {
PrintAndExit(msg,2);
} catch (...) {
PrintAndExit("Unexpected unknown exception occurred.", 2);
}
// Graceful exit
return 0;