aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine/Interpreter
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/Interpreter
parent3b047f7bfa190f494e0e51a4329b54228dc5e92e (diff)
downloadexternal_llvm-726c1ef2bdd72975f41e3188371bb7d6f40401be.tar.gz
external_llvm-726c1ef2bdd72975f41e3188371bb7d6f40401be.tar.bz2
external_llvm-726c1ef2bdd72975f41e3188371bb7d6f40401be.zip
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/Interpreter')
-rw-r--r--lib/ExecutionEngine/Interpreter/Interpreter.cpp12
-rw-r--r--lib/ExecutionEngine/Interpreter/Interpreter.h10
2 files changed, 9 insertions, 13 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.cpp b/lib/ExecutionEngine/Interpreter/Interpreter.cpp
index 0f73189a9e..37f16f528f 100644
--- a/lib/ExecutionEngine/Interpreter/Interpreter.cpp
+++ b/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() {
diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.h b/lib/ExecutionEngine/Interpreter/Interpreter.h
index 1b547a645b..e0669c9e37 100644
--- a/lib/ExecutionEngine/Interpreter/Interpreter.h
+++ b/lib/ExecutionEngine/Interpreter/Interpreter.h
@@ -25,6 +25,7 @@
namespace llvm {
+class IntrinsicLowering;
struct FunctionInfo;
template<typename T> class generic_gep_type_iterator;
class ConstantExpr;
@@ -93,8 +94,7 @@ class Interpreter : public ExecutionEngine, public InstVisitor<Interpreter> {
std::vector<Function*> AtExitHandlers;
public:
- Interpreter(Module *M, bool isLittleEndian, bool isLongPointer,
- IntrinsicLowering *IL);
+ Interpreter(Module *M, bool isLittleEndian, bool isLongPointer);
~Interpreter();
/// runAtExitHandlers - Run any functions registered by the program's calls to
@@ -106,11 +106,9 @@ public:
InterpCtor = create;
}
- /// create - Create an interpreter ExecutionEngine. This can never fail. The
- /// specified IntrinsicLowering implementation will be deleted when the
- /// Interpreter execution engine is destroyed.
+ /// create - Create an interpreter ExecutionEngine. This can never fail.
///
- static ExecutionEngine *create(ModuleProvider *M, IntrinsicLowering *IL);
+ static ExecutionEngine *create(ModuleProvider *M);
/// run - Start execution with the specified function and arguments.
///