[llvm] 81c680a - [ORC] Improve JITLinkReentryTrampolines "arch not supported" error message.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 12 22:26:30 PST 2024
Author: Lang Hames
Date: 2024-12-13T06:26:19Z
New Revision: 81c680a89622466b279357ca2e1045ef84d2c534
URL: https://github.com/llvm/llvm-project/commit/81c680a89622466b279357ca2e1045ef84d2c534
DIFF: https://github.com/llvm/llvm-project/commit/81c680a89622466b279357ca2e1045ef84d2c534.diff
LOG: [ORC] Improve JITLinkReentryTrampolines "arch not supported" error message.
"Architecture not supported" becomes
"JITLinkReentryTrampolines: architecture <arch> not supported".
Added:
Modified:
llvm/lib/ExecutionEngine/Orc/JITLinkReentryTrampolines.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/Orc/JITLinkReentryTrampolines.cpp b/llvm/lib/ExecutionEngine/Orc/JITLinkReentryTrampolines.cpp
index 1f6ec783b6c1d7..834292c165095a 100644
--- a/llvm/lib/ExecutionEngine/Orc/JITLinkReentryTrampolines.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/JITLinkReentryTrampolines.cpp
@@ -86,12 +86,14 @@ JITLinkReentryTrampolines::Create(ObjectLinkingLayer &ObjLinkingLayer) {
EmitTrampolineFn EmitTrampoline;
- switch (ObjLinkingLayer.getExecutionSession().getTargetTriple().getArch()) {
+ const auto &TT = ObjLinkingLayer.getExecutionSession().getTargetTriple();
+ switch (TT.getArch()) {
case Triple::aarch64:
EmitTrampoline = aarch64::createAnonymousReentryTrampoline;
break;
default:
- return make_error<StringError>("Architecture not supported",
+ return make_error<StringError>("JITLinkReentryTrampolines: architecture " +
+ TT.getArchName() + " not supported",
inconvertibleErrorCode());
}
More information about the llvm-commits
mailing list