summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit0b2de9f2d47ff4b8ed371587e417dacae7f2f6ec (patch)
treecb2c7c9b8561e3d21c7aa1a43957d72572884c1c /llvm/lib/ExecutionEngine/ExecutionEngine.cpp
parent7055878170be4bbb1d293a8d022d91f25360409a (diff)
downloadbcm5719-llvm-0b2de9f2d47ff4b8ed371587e417dacae7f2f6ec.tar.gz
bcm5719-llvm-0b2de9f2d47ff4b8ed371587e417dacae7f2f6ec.zip
remove the intrinsiclowering hook
llvm-svn: 26970
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/ExecutionEngine.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
index b920898230c..ebe02540710 100644
--- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud