[llvm-commits] CVS: llvm/tools/llvmc/llvmc.cpp
Reid Spencer
reid at x10sys.com
Wed Dec 29 21:36:22 PST 2004
Changes in directory llvm/tools/llvmc:
llvmc.cpp updated: 1.21 -> 1.22
---
Log message:
For PR351: http://llvm.cs.uiuc.edu/PR351 :
* Place a try/catch block around the entire tool to Make sure std::string
exceptions are caught and printed before exiting the tool.
* Make sure we catch unhandled exceptions at the top level so that we don't
abort with a useless message but indicate than an unhandled exception was
generated.
---
Diffs of the changes: (+1 -0)
Index: llvm/tools/llvmc/llvmc.cpp
diff -u llvm/tools/llvmc/llvmc.cpp:1.21 llvm/tools/llvmc/llvmc.cpp:1.22
--- llvm/tools/llvmc/llvmc.cpp:1.21 Fri Dec 10 18:14:15 2004
+++ llvm/tools/llvmc/llvmc.cpp Wed Dec 29 23:36:08 2004
@@ -368,4 +368,5 @@
} catch (...) {
std::cerr << argv[0] << ": Unexpected unknown exception occurred.\n";
}
+ return 1;
}
More information about the llvm-commits
mailing list