Author: lattner
Date: Sun Oct 21 17:58:11 2007
New Revision: 43207
URL: http://llvm.org/viewvc/llvm-project?rev=43207&view=rev
Log:
LoadLibraryPermanently doesn't throw.
Modified:
llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp
Modified: llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp
URL:
http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp?rev=43207&r1=43206&r2=43207&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp Sun Oct 21 17:58:11 2007
@@ -319,9 +319,9 @@
if (EE) {
// Make sure we can resolve symbols in the program as well. The zero arg
// to the function tells DynamicLibrary to load the program, not a library.
- try {
- sys::DynamicLibrary::LoadLibraryPermanently(0);
- } catch (...) {
+ if (sys::DynamicLibrary::LoadLibraryPermanently(0, ErrorStr)) {
+ delete EE;
+ return 0;
}
}
_______________________________________________
llvm-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits