diff options
| author | Lang Hames <lhames@gmail.com> | 2020-01-21 20:35:40 -0800 |
|---|---|---|
| committer | Hans Wennborg <hans@chromium.org> | 2020-01-29 21:50:17 +0100 |
| commit | 46f6f03839e302364111f4532b9a098e9a0a9d21 (patch) | |
| tree | e9bc15c692a6dcbac59135c45be9509bb69093b9 /llvm/examples/Kaleidoscope/BuildingAJIT | |
| parent | 32056b4eb87258884074f7f635bccd40fc44852c (diff) | |
| download | bcm5719-llvm-46f6f03839e302364111f4532b9a098e9a0a9d21.tar.gz bcm5719-llvm-46f6f03839e302364111f4532b9a098e9a0a9d21.zip | |
[ORC] Update examples to incorporate changes in ce2207abaf9.
This should fix the builders that were failing due to broken JIT examples
after ce2207abaf9.
(cherry picked from commit 98e55477558a823b1045b54d5a09681a3c0b819a)
Diffstat (limited to 'llvm/examples/Kaleidoscope/BuildingAJIT')
| -rw-r--r-- | llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h | 3 | ||||
| -rw-r--r-- | llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h index 020b72c2394..b7404baf1ff 100644 --- a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h +++ b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h @@ -45,7 +45,8 @@ public: KaleidoscopeJIT(JITTargetMachineBuilder JTMB, DataLayout DL) : ObjectLayer(ES, []() { return std::make_unique<SectionMemoryManager>(); }), - CompileLayer(ES, ObjectLayer, ConcurrentIRCompiler(std::move(JTMB))), + CompileLayer(ES, ObjectLayer, + std::make_unique<ConcurrentIRCompiler>(std::move(JTMB))), DL(std::move(DL)), Mangle(ES, this->DL), Ctx(std::make_unique<LLVMContext>()), MainJD(ES.createJITDylib("<main>")) { diff --git a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h index c8f01c04cf5..efb19349e3e 100644 --- a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h +++ b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h @@ -51,7 +51,8 @@ public: KaleidoscopeJIT(JITTargetMachineBuilder JTMB, DataLayout DL) : ObjectLayer(ES, []() { return std::make_unique<SectionMemoryManager>(); }), - CompileLayer(ES, ObjectLayer, ConcurrentIRCompiler(std::move(JTMB))), + CompileLayer(ES, ObjectLayer, + std::make_unique<ConcurrentIRCompiler>(std::move(JTMB))), OptimizeLayer(ES, CompileLayer, optimizeModule), DL(std::move(DL)), Mangle(ES, this->DL), Ctx(std::make_unique<LLVMContext>()), MainJD(ES.createJITDylib("<main>")) { |

