[llvm] 2a35d59 - [JITLink][MachO] Add more detail to error message.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 24 20:33:17 PDT 2021
Author: Lang Hames
Date: 2021-08-25T13:31:52+10:00
New Revision: 2a35d59b2f70c377c1aff206ad5a7105e1d387e8
URL: https://github.com/llvm/llvm-project/commit/2a35d59b2f70c377c1aff206ad5a7105e1d387e8
DIFF: https://github.com/llvm/llvm-project/commit/2a35d59b2f70c377c1aff206ad5a7105e1d387e8.diff
LOG: [JITLink][MachO] Add more detail to error message.
Added:
Modified:
llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp b/llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp
index 03a8b98dff18c..34bda09f1cacc 100644
--- a/llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp
+++ b/llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp
@@ -299,8 +299,9 @@ Error MachOLinkGraphBuilder::createNormalizedSymbols() {
return NSec.takeError();
if (Value < NSec->Address || Value > NSec->Address + NSec->Size)
- return make_error<JITLinkError>("Symbol address does not fall within "
- "section");
+ return make_error<JITLinkError>("Address " + formatv("{0:x}", Value) +
+ " for symbol " + *Name +
+ " does not fall within section");
if (!NSec->GraphSection) {
LLVM_DEBUG({
More information about the llvm-commits
mailing list