summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter/Interpreter.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/Interpreter/Interpreter.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/Interpreter/Interpreter.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp
index 0f73189a9e5..37f16f528f6 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp
@@ -26,8 +26,7 @@ static struct RegisterInterp {
/// create - Create a new interpreter object. This can never fail.
///
-ExecutionEngine *Interpreter::create(ModuleProvider *MP,
- IntrinsicLowering *IL) {
+ExecutionEngine *Interpreter::create(ModuleProvider *MP) {
Module *M;
try {
M = MP->materializeModule();
@@ -55,17 +54,16 @@ ExecutionEngine *Interpreter::create(ModuleProvider *MP,
break;
}
- return new Interpreter(M, isLittleEndian, isLongPointer, IL);
+ return new Interpreter(M, isLittleEndian, isLongPointer);
}
//===----------------------------------------------------------------------===//
// Interpreter ctor - Initialize stuff
//
-Interpreter::Interpreter(Module *M, bool isLittleEndian, bool isLongPointer,
- IntrinsicLowering *il)
+Interpreter::Interpreter(Module *M, bool isLittleEndian, bool isLongPointer)
: ExecutionEngine(M),
TD("lli", isLittleEndian, isLongPointer ? 8 : 4, isLongPointer ? 8 : 4,
- isLongPointer ? 8 : 4), IL(il) {
+ isLongPointer ? 8 : 4) {
memset(&ExitValue, 0, sizeof(ExitValue));
setTargetData(TD);
@@ -74,7 +72,7 @@ Interpreter::Interpreter(Module *M, bool isLittleEndian, bool isLongPointer,
initializeExternalFunctions();
emitGlobals();
- if (IL == 0) IL = new DefaultIntrinsicLowering();
+ IL = new DefaultIntrinsicLowering();
}
Interpreter::~Interpreter() {
OpenPOWER on IntegriCloud