mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-17 13:38:41 +00: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
48e8129edf
commit
935ca5a1a7
@ -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…
x
Reference in New Issue
Block a user