[llvm-commits] CVS: llvm/tools/lli/Interpreter/Interpreter.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun May 11 21:15:06 PDT 2003


Changes in directory llvm/tools/lli/Interpreter:

Interpreter.cpp updated: 1.4 -> 1.5

---
Log message:

Make sure that globals are emitted AFTER the passmanager is set up for the JIT, 
because the globals may refer to functions that need to be compiled!



---
Diffs of the changes:

Index: llvm/tools/lli/Interpreter/Interpreter.cpp
diff -u llvm/tools/lli/Interpreter/Interpreter.cpp:1.4 llvm/tools/lli/Interpreter/Interpreter.cpp:1.5
--- llvm/tools/lli/Interpreter/Interpreter.cpp:1.4	Thu May  8 11:18:31 2003
+++ llvm/tools/lli/Interpreter/Interpreter.cpp	Sun May 11 21:14:30 2003
@@ -34,6 +34,7 @@
   initializeExecutionEngine();
   initializeExternalFunctions();
   CW.setModule(M);  // Update Writer
+  emitGlobals();
 }
 
 /// run - Start execution with the specified function and arguments.





More information about the llvm-commits mailing list