mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
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:
@@ -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
|
||||
|
@@ -11,6 +11,5 @@ LEVEL = ../..
|
||||
|
||||
TOOLNAME = llvm-ld
|
||||
LINK_COMPONENTS = ipo scalaropts linker archive bitwriter
|
||||
REQUIRES_EH := 1
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user