mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Register the frame register function when allocating the JIT,
so that lli works out of the box with -enable-eh. llvm-svn: 54920
This commit is contained in:
parent
3b0cb367c0
commit
c5c2108727
@ -78,11 +78,6 @@ ExecutionEngine *ExecutionEngine::createJIT(ModuleProvider *MP,
|
||||
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 @@ JIT::JIT(ModuleProvider *MP, TargetMachine &tm, TargetJITInfo &tji,
|
||||
abort();
|
||||
}
|
||||
|
||||
// Register routine for informing unwinding runtime about new EH frames
|
||||
#if defined(__GNUC__)
|
||||
InstallExceptionTableRegister(__register_frame);
|
||||
#endif
|
||||
|
||||
// Initialize passes.
|
||||
PM.doInitialization();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user