aboutsummaryrefslogtreecommitdiffhomepage
path: root/content/2022-07-07-llvm-orc-jit/jit.h
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-12-19 18:57:07 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-12-19 18:57:07 +0100
commitf2f669414fae41fc791d4943a1446db61b30912f (patch)
tree3be4183b8fa4aee282ebdb4286023f582c906bc1 /content/2022-07-07-llvm-orc-jit/jit.h
parenta599959a61e2a9ae313b851b2b63c0a2b97d3cb5 (diff)
downloadblog-f2f669414fae41fc791d4943a1446db61b30912f.tar.gz
blog-f2f669414fae41fc791d4943a1446db61b30912f.zip
llvm-orc-jit: migrate to my latest clang-format
Diffstat (limited to 'content/2022-07-07-llvm-orc-jit/jit.h')
-rw-r--r--content/2022-07-07-llvm-orc-jit/jit.h21
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(