From 9304425914af7ddd8f9f8aa9825f9ca2f5180e9e Mon Sep 17 00:00:00 2001 From: Alexey Lapshin Date: Wed, 27 Feb 2019 18:36:46 +0000 Subject: [PATCH] Attempt to fix buildbot after r354972 [#1]. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355013 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp b/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp index 4e8360649bc..2b89f9d16fa 100644 --- a/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp +++ b/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp @@ -147,7 +147,9 @@ void IntelJITEventListener::notifyObjectLoaded( // Build the function loaded notification message iJIT_Method_Load FunctionMessage = FunctionDescToIntelJITFormat(*Wrapper, Name->data(), Addr, Size); - DILineInfoTable Lines = Context->getLineInfoForAddressRange(Addr, Size); + // TODO: it is neccessary to set proper SectionIndex here. + // object::SectionedAddress::UndefSection works for only absolute addresses. + DILineInfoTable Lines = Context->getLineInfoForAddressRange({Addr, object::SectionedAddress::UndefSection}, Size); DILineInfoTable::iterator Begin = Lines.begin(); DILineInfoTable::iterator End = Lines.end(); for (DILineInfoTable::iterator It = Begin; It != End; ++It) { -- 2.40.0