aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine/ExecutionEngine.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-23 05:22:51 +0000
committerChris Lattner <sabre@nondot.org>2006-03-23 05:22:51 +0000
commit726c1ef2bdd72975f41e3188371bb7d6f40401be (patch)
tree43efa948842597774234f3b3048e053442567609 /lib/ExecutionEngine/ExecutionEngine.cpp
parent3b047f7bfa190f494e0e51a4329b54228dc5e92e (diff)
downloadexternal_llvm-726c1ef2bdd72975f41e3188371bb7d6f40401be.zip
external_llvm-726c1ef2bdd72975f41e3188371bb7d6f40401be.tar.gz
external_llvm-726c1ef2bdd72975f41e3188371bb7d6f40401be.tar.bz2
remove the intrinsiclowering hook
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26970 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r--lib/ExecutionEngine/ExecutionEngine.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp
index b920898..ebe0254 100644
--- a/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -160,24 +160,22 @@ int ExecutionEngine::runFunctionAsMain(Function *Fn,
/// NULL is returned.
///
ExecutionEngine *ExecutionEngine::create(ModuleProvider *MP,
- bool ForceInterpreter,
- IntrinsicLowering *IL) {
+ bool ForceInterpreter) {
ExecutionEngine *EE = 0;
// Unless the interpreter was explicitly selected, try making a JIT.
if (!ForceInterpreter && JITCtor)
- EE = JITCtor(MP, IL);
+ EE = JITCtor(MP);
// If we can't make a JIT, make an interpreter instead.
if (EE == 0 && InterpCtor)
- EE = InterpCtor(MP, IL);
+ EE = InterpCtor(MP);
- if (EE == 0)
- delete IL;
- else
+ 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.
sys::DynamicLibrary::LoadLibraryPermanently(0);
+ }
return EE;
}