Changes in directory llvm/lib/ExecutionEngine/Interpreter:
Interpreter.cpp updated: 1.27 -> 1.28 Interpreter.h updated: 1.73 -> 1.74 --- Log message: remove the intrinsiclowering hook --- Diffs of the changes: (+9 -13) Interpreter.cpp | 12 +++++------- Interpreter.h | 10 ++++------ 2 files changed, 9 insertions(+), 13 deletions(-) Index: llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp diff -u llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp:1.27 llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp:1.28 --- llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp:1.27 Wed Mar 22 00:07:50 2006 +++ llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp Wed Mar 22 23:22:51 2006 @@ -26,8 +26,7 @@ /// 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 @@ 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 @@ initializeExternalFunctions(); emitGlobals(); - if (IL == 0) IL = new DefaultIntrinsicLowering(); + IL = new DefaultIntrinsicLowering(); } Interpreter::~Interpreter() { Index: llvm/lib/ExecutionEngine/Interpreter/Interpreter.h diff -u llvm/lib/ExecutionEngine/Interpreter/Interpreter.h:1.73 llvm/lib/ExecutionEngine/Interpreter/Interpreter.h:1.74 --- llvm/lib/ExecutionEngine/Interpreter/Interpreter.h:1.73 Wed Mar 22 00:07:50 2006 +++ llvm/lib/ExecutionEngine/Interpreter/Interpreter.h Wed Mar 22 23:22:51 2006 @@ -25,6 +25,7 @@ namespace llvm { +class IntrinsicLowering; struct FunctionInfo; template<typename T> class generic_gep_type_iterator; class ConstantExpr; @@ -93,8 +94,7 @@ 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 @@ 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. /// _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits