projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make sure that globals are emitted AFTER the passmanager is set up for the JIT,
[oota-llvm.git]
/
lib
/
ExecutionEngine
/
Interpreter
/
Interpreter.cpp
diff --git
a/lib/ExecutionEngine/Interpreter/Interpreter.cpp
b/lib/ExecutionEngine/Interpreter/Interpreter.cpp
index 1c41841b81276654384bd4c58441e4b8b4b2e0d4..4582a6f26d4eef08bf02e6fca53c7f3106bd7354 100644
(file)
--- a/
lib/ExecutionEngine/Interpreter/Interpreter.cpp
+++ b/
lib/ExecutionEngine/Interpreter/Interpreter.cpp
@@
-34,6
+34,7
@@
Interpreter::Interpreter(Module *M, unsigned Config,
initializeExecutionEngine();
initializeExternalFunctions();
CW.setModule(M); // Update Writer
+ emitGlobals();
}
/// run - Start execution with the specified function and arguments.