Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 9304425

Browse files
committed
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
1 parent 61d0823 commit 9304425

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ void IntelJITEventListener::notifyObjectLoaded(
147147
// Build the function loaded notification message
148148
iJIT_Method_Load FunctionMessage =
149149
FunctionDescToIntelJITFormat(*Wrapper, Name->data(), Addr, Size);
150-
DILineInfoTable Lines = Context->getLineInfoForAddressRange(Addr, Size);
150+
// TODO: it is neccessary to set proper SectionIndex here.
151+
// object::SectionedAddress::UndefSection works for only absolute addresses.
152+
DILineInfoTable Lines = Context->getLineInfoForAddressRange({Addr, object::SectionedAddress::UndefSection}, Size);
151153
DILineInfoTable::iterator Begin = Lines.begin();
152154
DILineInfoTable::iterator End = Lines.end();
153155
for (DILineInfoTable::iterator It = Begin; It != End; ++It) {

0 commit comments

Comments
 (0)