Make sure that globals are emitted AFTER the passmanager is set up for the JIT,
[oota-llvm.git] / lib / ExecutionEngine / Interpreter / Interpreter.cpp
index 1c41841b81276654384bd4c58441e4b8b4b2e0d4..4582a6f26d4eef08bf02e6fca53c7f3106bd7354 100644 (file)
@@ -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.