[JITLink][MachO] Add more detail to error message.

This commit is contained in:
Lang Hames 2021-08-25 13:31:06 +10:00
parent fc3b2675e7
commit 2a35d59b2f
1 changed files with 3 additions and 2 deletions

View File

@ -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({