diff options
Diffstat (limited to 'content/2022-07-07-llvm-orc-jit/jit.h')
-rw-r--r-- | content/2022-07-07-llvm-orc-jit/jit.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/content/2022-07-07-llvm-orc-jit/jit.h b/content/2022-07-07-llvm-orc-jit/jit.h index 9ac7b0a..23cec42 100644 --- a/content/2022-07-07-llvm-orc-jit/jit.h +++ b/content/2022-07-07-llvm-orc-jit/jit.h @@ -52,15 +52,18 @@ private: JITDylib& JD; public: - Jit(std::unique_ptr<ExecutionSession> ES, JITTargetMachineBuilder JTMB, - DataLayout DL) : - ES(std::move(ES)), - DL(std::move(DL)), Mangle(*this->ES, this->DL), - ObjectLayer(*this->ES, - []() { return std::make_unique<SectionMemoryManager>(); }), - CompileLayer(*this->ES, ObjectLayer, - std::make_unique<ConcurrentIRCompiler>(std::move(JTMB))), - JD(this->ES->createBareJITDylib("main")) { + Jit(std::unique_ptr<ExecutionSession> ES, + JITTargetMachineBuilder JTMB, + DataLayout DL) + : ES(std::move(ES)), + DL(std::move(DL)), + Mangle(*this->ES, this->DL), + ObjectLayer(*this->ES, + []() { return std::make_unique<SectionMemoryManager>(); }), + CompileLayer(*this->ES, + ObjectLayer, + std::make_unique<ConcurrentIRCompiler>(std::move(JTMB))), + JD(this->ES->createBareJITDylib("main")) { // https://www.llvm.org/docs/ORCv2.html#how-to-add-process-and-library-symbols-to-jitdylibs // JD.addGenerator( // cantFail(DynamicLibrarySearchGenerator::GetForCurrentProcess( |