[Orc] Enable user-supplied memory managers in the CompileOnDemand layer.
[oota-llvm.git] / tools / lli / OrcLazyJIT.h
index bb4da33ea9b6d9669d679f5602d0db4c9e7bbdbe..2a5b31d1bfb8e9810d11a08391bad8deef9d0e6d 100644 (file)
@@ -105,7 +105,9 @@ public:
     // Add the module to the JIT.
     std::vector<std::unique_ptr<Module>> S;
     S.push_back(std::move(M));
-    auto H = CODLayer.addModuleSet(std::move(S), nullptr, std::move(Resolver));
+    auto H = CODLayer.addModuleSet(std::move(S),
+                                  llvm::make_unique<SectionMemoryManager>(),
+                                  std::move(Resolver));
 
     // Run the static constructors, and save the static destructor runner for
     // execution when the JIT is torn down.