[llvm-commits] CVS: llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Fri Oct 24 15:00:01 PDT 2003


Changes in directory llvm/lib/ExecutionEngine/Interpreter:

Interpreter.cpp updated: 1.14 -> 1.15

---
Log message:

ExecutionEngine::create no longer takes a TraceMode argument.
CurFrame, TraceMode, and the CachedWriter are history.


---
Diffs of the changes:  (+7 -13)

Index: llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp
diff -u llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp:1.14 llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp:1.15
--- llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp:1.14	Mon Oct 20 14:43:16 2003
+++ llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp	Fri Oct 24 14:59:28 2003
@@ -20,7 +20,7 @@
 
 /// create - Create a new interpreter object.  This can never fail.
 ///
-ExecutionEngine *Interpreter::create(Module *M, bool TraceMode){
+ExecutionEngine *Interpreter::create(Module *M){
   bool isLittleEndian = false;
   switch (M->getEndianness()) {
   case Module::LittleEndian: isLittleEndian = true; break;
@@ -41,23 +41,21 @@
     break;
   }
 
-  return new Interpreter(M, isLittleEndian, isLongPointer, TraceMode);
+  return new Interpreter(M, isLittleEndian, isLongPointer);
 }
 
 //===----------------------------------------------------------------------===//
 // Interpreter ctor - Initialize stuff
 //
-Interpreter::Interpreter(Module *M, bool isLittleEndian, bool isLongPointer,
-                         bool TraceMode)
-  : ExecutionEngine(M), ExitCode(0), Trace(TraceMode),
-    CurFrame(-1), TD("lli", isLittleEndian, isLongPointer ? 8 : 4,
-                     isLongPointer ? 8 : 4, isLongPointer ? 8 : 4) {
+Interpreter::Interpreter(Module *M, bool isLittleEndian, bool isLongPointer)
+  : ExecutionEngine(M), ExitCode(0),
+    TD("lli", isLittleEndian, isLongPointer ? 8 : 4, isLongPointer ? 8 : 4,
+       isLongPointer ? 8 : 4) {
 
   setTargetData(TD);
   // Initialize the "backend"
   initializeExecutionEngine();
   initializeExternalFunctions();
-  CW.setModule(M);  // Update Writer
   emitGlobals();
 }
 
@@ -84,15 +82,11 @@
   // though.
   std::vector<GenericValue> ActualArgs;
   const unsigned ArgCount = F->getFunctionType()->getParamTypes().size();
-  for (unsigned i = 0; i < ArgCount; ++i) {
+  for (unsigned i = 0; i < ArgCount; ++i)
     ActualArgs.push_back (ArgValues[i]);
-  }
   
   // Set up the function call.
   callFunction(F, ActualArgs);
-
-  // Reset the current frame location to the top of stack
-  CurFrame = ECStack.size()-1;
 
   // Start executing the function.
   run();





More information about the llvm-commits mailing list