]> granicus.if.org Git - llvm/commitdiff
Attempt to fix buildbot after r354972 [#1]. NFCI.
authorAlexey Lapshin <a.v.lapshin@mail.ru>
Wed, 27 Feb 2019 18:36:46 +0000 (18:36 +0000)
committerAlexey Lapshin <a.v.lapshin@mail.ru>
Wed, 27 Feb 2019 18:36:46 +0000 (18:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355013 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp

index 4e8360649bc04f951635ccc20fe9d4dfc9f4192a..2b89f9d16faec5290a401ddbcb4cc0808f33e590 100644 (file)
@@ -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) {