Add EngineBuilder to ExecutionEngine in favor of the five optional argument EE::create().
[oota-llvm.git] / examples / Kaleidoscope / toy.cpp
index 4fd80a936343c7e33e75ae8430424ff4a873b45c..abcd412f077a8060eb8562dc42812611ed8dd051 100644 (file)
@@ -1103,7 +1103,7 @@ int main() {
   TheModule = new Module("my cool jit", Context);
   
   // Create the JIT.
-  TheExecutionEngine = ExecutionEngine::create(TheModule);
+  TheExecutionEngine = EngineBuilder(TheModule).create();
 
   {
     ExistingModuleProvider OurModuleProvider(TheModule);
@@ -1138,4 +1138,3 @@ int main() {
   
   return 0;
 }
-