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 | 3fdfc04e5339c1d0ad838c1e5531b3a2e4377ec3 (patch) | |
| tree | b9a2a81ff5a623dc196685546a58e9f79790a22e /llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2 | |
| parent | 321c2487d7b1806cb3cc1a2391b130935bc06b64 (diff) | |
| download | bcm5719-llvm-3fdfc04e5339c1d0ad838c1e5531b3a2e4377ec3.tar.gz bcm5719-llvm-3fdfc04e5339c1d0ad838c1e5531b3a2e4377ec3.zip | |
[ORC] Create a new SymbolStringPool by default in ExecutionSession constructor.
This makes the common case of constructing an ExecutionSession tidier.
llvm-svn: 329013
Diffstat (limited to 'llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2')
| -rw-r--r-- | llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h index 679d72e2050..653e2fd302b 100644 --- a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h +++ b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h @@ -42,7 +42,6 @@ namespace orc { class KaleidoscopeJIT { private: - SymbolStringPool SSP; ExecutionSession ES; std::shared_ptr<SymbolResolver> Resolver; std::unique_ptr<TargetMachine> TM; @@ -57,8 +56,7 @@ private: public: KaleidoscopeJIT() - : ES(SSP), - Resolver(createLegacyLookupResolver( + : Resolver(createLegacyLookupResolver( [this](const std::string &Name) -> JITSymbol { if (auto Sym = OptimizeLayer.findSymbol(Name, false)) return Sym; |

