[examples] Fix Kaleidoscope examples after OrcJIT break-up / remote TPC commit.

Fix the Kaleidoscope examples after 1d0676b54c4 by explicitly creating the
SymbolStringPool.
This commit is contained in:
Lang Hames 2020-11-13 18:40:40 +11:00
parent 48e8129edf
commit 935ca5a1a7

View File

@ -65,11 +65,12 @@ public:
}
static Expected<std::unique_ptr<KaleidoscopeJIT>> Create() {
auto TPC = SelfTargetProcessControl::Create();
auto SSP = std::make_shared<SymbolStringPool>();
auto TPC = SelfTargetProcessControl::Create(SSP);
if (!TPC)
return TPC.takeError();
auto ES = std::make_unique<ExecutionSession>();
auto ES = std::make_unique<ExecutionSession>(std::move(SSP));
JITTargetMachineBuilder JTMB((*TPC)->getTargetTriple());