mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-18 10:32:48 +02:00
[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:
parent
0830411749
commit
61a5db908b
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user