Temporarily Revert "Nuke the old JIT." as it's not quite ready to
[oota-llvm.git] / examples / Kaleidoscope / MCJIT / lazy / toy.cpp
index 9c2a0d48f39cd76558d0e952b9182529afb74a5a..ff88e23bd355cae770234f4d684695a203ae8099 100644 (file)
@@ -808,6 +808,7 @@ ExecutionEngine *MCJITHelper::compileModule(Module *M) {
   std::string ErrStr;
   ExecutionEngine *NewEngine = EngineBuilder(M)
                                             .setErrorStr(&ErrStr)
+                                            .setUseMCJIT(true)
                                             .setMCJITMemoryManager(new HelpingMemoryManager(this))
                                             .create();
   if (!NewEngine) {