diff options
Diffstat (limited to 'examples/Kaleidoscope/include/KaleidoscopeJIT.h')
-rw-r--r-- | examples/Kaleidoscope/include/KaleidoscopeJIT.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/Kaleidoscope/include/KaleidoscopeJIT.h b/examples/Kaleidoscope/include/KaleidoscopeJIT.h index fe73d717976..e389781d8f4 100644 --- a/examples/Kaleidoscope/include/KaleidoscopeJIT.h +++ b/examples/Kaleidoscope/include/KaleidoscopeJIT.h @@ -45,6 +45,7 @@ public: KaleidoscopeJIT() : TM(EngineBuilder().selectTarget()), DL(TM->createDataLayout()), + ObjectLayer([]() { return std::make_shared<SectionMemoryManager>(); }), CompileLayer(ObjectLayer, SimpleCompiler(*TM)) { llvm::sys::DynamicLibrary::LoadLibraryPermanently(nullptr); } @@ -63,7 +64,6 @@ public: }, [](const std::string &S) { return nullptr; }); auto H = CompileLayer.addModule(std::move(M), - make_unique<SectionMemoryManager>(), std::move(Resolver)); ModuleHandles.push_back(H); |