diff options
author | Lang Hames <lhames@gmail.com> | 2018-04-02 20:57:56 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2018-04-02 20:57:56 +0000 |
commit | 73bcd8b27c50620d2cb5c23a4de65f75e6a6db4b (patch) | |
tree | 0b95599ac5062e289af5d7b147986e367aff9226 /examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h | |
parent | dd9d04ad20e56a20066058a01191f973ab10ec27 (diff) |
[ORC] Create a new SymbolStringPool by default in ExecutionSession constructor.
This makes the common case of constructing an ExecutionSession tidier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329013 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h')
-rw-r--r-- | examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h b/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h index cca82293018..fa306c61789 100644 --- a/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h +++ b/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h @@ -46,7 +46,6 @@ namespace orc { class KaleidoscopeJIT { private: - SymbolStringPool SSP; ExecutionSession ES; std::map<VModuleKey, std::shared_ptr<SymbolResolver>> Resolvers; std::unique_ptr<TargetMachine> TM; @@ -64,7 +63,7 @@ private: public: KaleidoscopeJIT() - : ES(SSP), TM(EngineBuilder().selectTarget()), DL(TM->createDataLayout()), + : TM(EngineBuilder().selectTarget()), DL(TM->createDataLayout()), ObjectLayer(ES, [this](VModuleKey K) { return RTDyldObjectLinkingLayer::Resources{ |