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

Misha Brukman brukman at cs.uiuc.edu
Tue Oct 14 16:37:01 PDT 2003


Changes in directory llvm/lib/ExecutionEngine:

ExecutionEngine.cpp updated: 1.31 -> 1.32

---
Log message:

Enabling incremental bytecode loading in the JIT:
* ExecutionEngine and VM can be constructed using a ModuleProvider.


---
Diffs of the changes:  (+5 -4)

Index: llvm/lib/ExecutionEngine/ExecutionEngine.cpp
diff -u llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.31 llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.32
--- llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.31	Fri Oct 10 12:45:12 2003
+++ llvm/lib/ExecutionEngine/ExecutionEngine.cpp	Tue Oct 14 16:36:31 2003
@@ -22,22 +22,23 @@
 Statistic<> NumInitBytes("lli", "Number of bytes of global vars initialized");
 
 ExecutionEngine::~ExecutionEngine() {
-  delete &CurMod;
+  delete MP;
 }
 
 /// FIXME: document
 ///
-ExecutionEngine *ExecutionEngine::create(Module *M, bool ForceInterpreter,
+ExecutionEngine *ExecutionEngine::create(ModuleProvider *MP, 
+                                         bool ForceInterpreter,
                                          bool TraceMode) {
   ExecutionEngine *EE = 0;
 
   // If there is nothing that is forcing us to use the interpreter, make a JIT.
   if (!ForceInterpreter && !TraceMode)
-    EE = VM::create(M);
+    EE = VM::create(MP);
 
   // If we can't make a JIT, make an interpreter instead.
   if (EE == 0)
-    EE = Interpreter::create(M, TraceMode);
+    EE = Interpreter::create(MP->releaseModule(), TraceMode);
   return EE;
 }
 





More information about the llvm-commits mailing list