Reinstate "Nuke the old JIT."
[oota-llvm.git] / examples / ExceptionDemo / ExceptionDemo.cpp
index 21d290e4356aa31f9f76d94038a839b788b1adf7..e5e2c923d7310a8e7f379971423d67aa9a6f15ce 100644 (file)
@@ -1966,10 +1966,8 @@ int main(int argc, char *argv[]) {
   // Build engine with JIT
   llvm::EngineBuilder factory(std::move(Owner));
   factory.setEngineKind(llvm::EngineKind::JIT);
-  factory.setAllocateGVsWithCode(false);
   factory.setTargetOptions(Opts);
   factory.setMCJITMemoryManager(MemMgr);
-  factory.setUseMCJIT(true);
   llvm::ExecutionEngine *executionEngine = factory.create();
 
   {