Remove access to the DataLayout in the TargetMachine
[oota-llvm.git] / tools / lli / OrcLazyJIT.cpp
index ae276e6cda8fbef4778cc82261978c429460e530..718b3903822215cd2f942e988768a439b0841d11 100644 (file)
@@ -136,7 +136,8 @@ int llvm::runOrcLazyJIT(std::unique_ptr<Module> M, int ArgC, char* ArgV[]) {
   }
 
   // Everything looks good. Build the JIT.
-  OrcLazyJIT J(std::move(TM), Context, CallbackMgrBuilder);
+  auto &DL = M->getDataLayout();
+  OrcLazyJIT J(std::move(TM), DL, Context, CallbackMgrBuilder);
 
   // Add the module, look up main and run it.
   auto MainHandle = J.addModule(std::move(M));