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