[PATCH] D115117: Update KaleidoscopeJIT.h
abdullah abdalkafi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 5 12:35:31 PST 2021
hero2002 updated this revision to Diff 391935.
hero2002 added a comment.
fixed it not compiling due to a change in the lastest commits
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115117/new/
https://reviews.llvm.org/D115117
Files:
llvm/examples/Kaleidoscope/include/KaleidoscopeJIT.h
Index: llvm/examples/Kaleidoscope/include/KaleidoscopeJIT.h
===================================================================
--- llvm/examples/Kaleidoscope/include/KaleidoscopeJIT.h
+++ llvm/examples/Kaleidoscope/include/KaleidoscopeJIT.h
@@ -54,10 +55,6 @@
MainJD.addGenerator(
cantFail(DynamicLibrarySearchGenerator::GetForCurrentProcess(
DL.getGlobalPrefix())));
- if (JTMB.getTargetTriple().isOSBinFormatCOFF()) {
- ObjectLayer.setOverrideObjectFlagsWithResponsibilityFlags(true);
- ObjectLayer.setAutoClaimResponsibilityForObjectSymbols(true);
- }
}
~KaleidoscopeJIT() {
@@ -66,14 +63,13 @@
}
static Expected<std::unique_ptr<KaleidoscopeJIT>> Create() {
- auto EPC = SelfExecutorProcessControl::Create();
+ std::shared_ptr<SymbolStringPool> SSP =
+ std::make_unique<SymbolStringPool>();
+ auto EPC = SelfExecutorProcessControl::Create(SSP);
if (!EPC)
return EPC.takeError();
-
- auto ES = std::make_unique<ExecutionSession>(std::move(*EPC));
-
+ auto ES = std::make_unique<ExecutionSession>(std::move(*EPC));
- JITTargetMachineBuilder JTMB(
- ES->getExecutorProcessControl().getTargetTriple());
+ JITTargetMachineBuilder JTMB(EPC.get()->getTargetTriple());
auto DL = JTMB.getDefaultDataLayoutForTarget();
if (!DL)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115117.391935.patch
Type: text/x-patch
Size: 1340 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211205/b94e4094/attachment.bin>
More information about the llvm-commits
mailing list