[llvm] 935ca5a - [examples] Fix Kaleidoscope examples after OrcJIT break-up / remote TPC commit.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 12 23:44:54 PST 2020
Author: Lang Hames
Date: 2020-11-13T18:43:13+11:00
New Revision: 935ca5a1a7bec8d0f5e8aaf0c5589916b6dc48aa
URL: https://github.com/llvm/llvm-project/commit/935ca5a1a7bec8d0f5e8aaf0c5589916b6dc48aa
DIFF: https://github.com/llvm/llvm-project/commit/935ca5a1a7bec8d0f5e8aaf0c5589916b6dc48aa.diff
LOG: [examples] Fix Kaleidoscope examples after OrcJIT break-up / remote TPC commit.
Fix the Kaleidoscope examples after 1d0676b54c4 by explicitly creating the
SymbolStringPool.
Added:
Modified:
llvm/examples/Kaleidoscope/include/KaleidoscopeJIT.h
Removed:
################################################################################
diff --git a/llvm/examples/Kaleidoscope/include/KaleidoscopeJIT.h b/llvm/examples/Kaleidoscope/include/KaleidoscopeJIT.h
index 9b35456a7041..eb2d21c50b9a 100644
--- a/llvm/examples/Kaleidoscope/include/KaleidoscopeJIT.h
+++ b/llvm/examples/Kaleidoscope/include/KaleidoscopeJIT.h
@@ -65,11 +65,12 @@ class KaleidoscopeJIT {
}
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());
More information about the llvm-commits
mailing list