[llvm-commits] [llvm] r54920 - /llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Mon Aug 18 07:53:59 PDT 2008
Author: geoffray
Date: Mon Aug 18 09:53:56 2008
New Revision: 54920
URL: http://llvm.org/viewvc/llvm-project?rev=54920&view=rev
Log:
Register the frame register function when allocating the JIT,
so that lli works out of the box with -enable-eh.
Modified:
llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp
Modified: llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp?rev=54920&r1=54919&r2=54920&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp Mon Aug 18 09:53:56 2008
@@ -78,11 +78,6 @@
ExecutionEngine *EE = JIT::createJIT(MP, ErrorStr, JMM, Fast);
if (!EE) return 0;
- // Register routine for informing unwinding runtime about new EH frames
-#if defined(__GNUC__)
- EE->InstallExceptionTableRegister(__register_frame);
-#endif
-
// 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.
sys::DynamicLibrary::LoadLibraryPermanently(0, ErrorStr);
@@ -111,6 +106,11 @@
abort();
}
+ // Register routine for informing unwinding runtime about new EH frames
+#if defined(__GNUC__)
+ InstallExceptionTableRegister(__register_frame);
+#endif
+
// Initialize passes.
PM.doInitialization();
}
More information about the llvm-commits
mailing list