[Orc] Remove a bunch of constructors from ObjectLinkingLayer.
[oota-llvm.git] / lib / ExecutionEngine / Orc / OrcMCJITReplacement.h
index 9fdf0efdd9084b2fbf19e456bced1272f0e75746..aea5857562900ceb6f86de14d5dc6e65b7ff1eab 100644 (file)
@@ -122,7 +122,8 @@ public:
       : TM(std::move(TM)), MM(std::move(MM)),
         Mang(this->TM->getSubtargetImpl()->getDataLayout()),
         NotifyObjectLoaded(*this), NotifyFinalized(*this),
-        ObjectLayer(NotifyObjectLoaded, NotifyFinalized),
+        ObjectLayer(ObjectLayerT::CreateRTDyldMMFtor(), NotifyObjectLoaded,
+                    NotifyFinalized),
         CompileLayer(ObjectLayer, SimpleCompiler(*this->TM)),
         LazyEmitLayer(CompileLayer) {
     setDataLayout(this->TM->getSubtargetImpl()->getDataLayout());