[llvm] r343167 - [ORC] Use ExecutionSession's pre-constructed main JITDylib in LLJIT.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 26 21:19:32 PDT 2018
Author: lhames
Date: Wed Sep 26 21:19:32 2018
New Revision: 343167
URL: http://llvm.org/viewvc/llvm-project?rev=343167&view=rev
Log:
[ORC] Use ExecutionSession's pre-constructed main JITDylib in LLJIT.
As of r342086 ExecutionSession automatically creates a 'main' JITDylib, so
there is no need for LLJIT to create its own.
Modified:
llvm/trunk/lib/ExecutionEngine/Orc/LLJIT.cpp
Modified: llvm/trunk/lib/ExecutionEngine/Orc/LLJIT.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/Orc/LLJIT.cpp?rev=343167&r1=343166&r2=343167&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/Orc/LLJIT.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/Orc/LLJIT.cpp Wed Sep 26 21:19:32 2018
@@ -83,7 +83,7 @@ Expected<JITEvaluatedSymbol> LLJIT::look
LLJIT::LLJIT(std::unique_ptr<ExecutionSession> ES,
std::unique_ptr<TargetMachine> TM, DataLayout DL)
- : ES(std::move(ES)), Main(this->ES->createJITDylib("main")),
+ : ES(std::move(ES)), Main(this->ES->getMainJITDylib()),
DL(std::move(DL)),
ObjLinkingLayer(*this->ES,
[this](VModuleKey K) { return getMemoryManager(K); }),
@@ -93,7 +93,7 @@ LLJIT::LLJIT(std::unique_ptr<ExecutionSe
LLJIT::LLJIT(std::unique_ptr<ExecutionSession> ES,
JITTargetMachineBuilder JTMB, DataLayout DL,
unsigned NumCompileThreads)
- : ES(std::move(ES)), Main(this->ES->createJITDylib("main")),
+ : ES(std::move(ES)), Main(this->ES->getMainJITDylib()),
DL(std::move(DL)),
ObjLinkingLayer(*this->ES,
[this](VModuleKey K) { return getMemoryManager(K); }),
More information about the llvm-commits
mailing list