[PATCH] D129350: [Orc] Honor hasJIT in JITTargetMachineBuilder::createTargetMachine
Rainer Orth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 14 23:21:25 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8922adf646ee: [Orc] Honor hasJIT in JITTargetMachineBuilder::createTargetMachine (authored by ro).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129350/new/
https://reviews.llvm.org/D129350
Files:
llvm/lib/ExecutionEngine/Orc/JITTargetMachineBuilder.cpp
Index: llvm/lib/ExecutionEngine/Orc/JITTargetMachineBuilder.cpp
===================================================================
--- llvm/lib/ExecutionEngine/Orc/JITTargetMachineBuilder.cpp
+++ llvm/lib/ExecutionEngine/Orc/JITTargetMachineBuilder.cpp
@@ -48,6 +48,10 @@
if (!TheTarget)
return make_error<StringError>(std::move(ErrMsg), inconvertibleErrorCode());
+ if (!TheTarget->hasJIT())
+ return make_error<StringError>("Target has no JIT support",
+ inconvertibleErrorCode());
+
auto *TM =
TheTarget->createTargetMachine(TT.getTriple(), CPU, Features.getString(),
Options, RM, CM, OptLevel, /*JIT*/ true);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129350.444885.patch
Type: text/x-patch
Size: 710 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220715/72b52bab/attachment-0001.bin>
More information about the llvm-commits
mailing list