From 2a35d59b2f70c377c1aff206ad5a7105e1d387e8 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Wed, 25 Aug 2021 13:31:06 +1000 Subject: [PATCH] [JITLink][MachO] Add more detail to error message. --- llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp b/llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp index 03a8b98dff18..34bda09f1cac 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("Symbol address does not fall within " - "section"); + return make_error("Address " + formatv("{0:x}", Value) + + " for symbol " + *Name + + " does not fall within section"); if (!NSec->GraphSection) { LLVM_DEBUG({