[llvm-commits] CVS: llvm/tools/lli/ExecutionEngine.h
Chris Lattner
lattner at cs.uiuc.edu
Sun May 11 21:15:00 PDT 2003
Changes in directory llvm/tools/lli:
ExecutionEngine.h updated: 1.3 -> 1.4
---
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/ExecutionEngine.h
diff -u llvm/tools/lli/ExecutionEngine.h:1.3 llvm/tools/lli/ExecutionEngine.h:1.4
--- llvm/tools/lli/ExecutionEngine.h:1.3 Thu May 8 22:29:03 2003
+++ llvm/tools/lli/ExecutionEngine.h Sun May 11 21:14:26 2003
@@ -30,7 +30,6 @@
void setTargetData(const TargetData &td) {
TD = &td;
- emitGlobals();
}
public:
ExecutionEngine(Module *M) : CurMod(*M) {
@@ -81,7 +80,7 @@
//
virtual void *getPointerToFunction(const Function *F) = 0;
-private:
+protected:
void emitGlobals();
public: // FIXME: protected: // API shared among subclasses
More information about the llvm-commits
mailing list