]> granicus.if.org Git - llvm/commitdiff
[ORC] Fix BuildingAJIT tutorial code broken by r368707.
authorLang Hames <lhames@gmail.com>
Tue, 13 Aug 2019 19:38:52 +0000 (19:38 +0000)
committerLang Hames <lhames@gmail.com>
Tue, 13 Aug 2019 19:38:52 +0000 (19:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368740 91177308-0d34-0410-b5e6-96231b3b80d8

examples/Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h
examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h

index 643f65ad3b6bf899ba9568b23f99052ed5e48cf5..8b79f2eefd960037a70231815ae88e6423ad3836 100644 (file)
@@ -46,7 +46,7 @@ public:
         CompileLayer(ES, ObjectLayer, ConcurrentIRCompiler(std::move(JTMB))),
         DL(std::move(DL)), Mangle(ES, this->DL),
         Ctx(llvm::make_unique<LLVMContext>()) {
-    ES.getMainJITDylib().setGenerator(
+    ES.getMainJITDylib().addGenerator(
         cantFail(DynamicLibrarySearchGenerator::GetForCurrentProcess(
             DL.getGlobalPrefix())));
   }
index eadd5c0b59958c44f90220a8b4cbc30b6ff6732e..bf89d3b759701aefc15a448484321d153ee366f5 100644 (file)
@@ -53,7 +53,7 @@ public:
         OptimizeLayer(ES, CompileLayer, optimizeModule),
         DL(std::move(DL)), Mangle(ES, this->DL),
         Ctx(llvm::make_unique<LLVMContext>()) {
-    ES.getMainJITDylib().setGenerator(
+    ES.getMainJITDylib().addGenerator(
         cantFail(DynamicLibrarySearchGenerator::GetForCurrentProcess(
             DL.getGlobalPrefix())));
   }