Skip to content

Commit 2a35d59

Browse files
committed
[JITLink][MachO] Add more detail to error message.
1 parent fc3b267 commit 2a35d59

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,9 @@ Error MachOLinkGraphBuilder::createNormalizedSymbols() {
299299
return NSec.takeError();
300300

301301
if (Value < NSec->Address || Value > NSec->Address + NSec->Size)
302-
return make_error<JITLinkError>("Symbol address does not fall within "
303-
"section");
302+
return make_error<JITLinkError>("Address " + formatv("{0:x}", Value) +
303+
" for symbol " + *Name +
304+
" does not fall within section");
304305

305306
if (!NSec->GraphSection) {
306307
LLVM_DEBUG({

0 commit comments

Comments
 (0)