Revert "Remove access to the DataLayout in the TargetMachine"
[oota-llvm.git] / lib / ExecutionEngine / Orc / OrcMCJITReplacement.h
index 951993f75e4ceb2a0f173f579ce50e230079899d..0efbcbd915930d5f9e5c01fd04d5c22bc2fa5473 100644 (file)
@@ -140,7 +140,7 @@ public:
       std::shared_ptr<MCJITMemoryManager> MemMgr,
       std::shared_ptr<RuntimeDyld::SymbolResolver> ClientResolver,
       std::unique_ptr<TargetMachine> TM)
-      : ExecutionEngine(TM->createDataLayout()), TM(std::move(TM)),
+      : ExecutionEngine(*TM->getDataLayout()), TM(std::move(TM)),
         MemMgr(*this, std::move(MemMgr)), Resolver(*this),
         ClientResolver(std::move(ClientResolver)), NotifyObjectLoaded(*this),
         NotifyFinalized(*this),