[llvm] r355013 - Attempt to fix buildbot after r354972 [#1]. NFCI.

Alexey Lapshin via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 27 10:36:46 PST 2019


Author: avl
Date: Wed Feb 27 10:36:46 2019
New Revision: 355013

URL: http://llvm.org/viewvc/llvm-project?rev=355013&view=rev
Log:
    Attempt to fix buildbot after r354972 [#1]. NFCI.

Modified:
    llvm/trunk/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp

Modified: llvm/trunk/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp?rev=355013&r1=355012&r2=355013&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp Wed Feb 27 10:36:46 2019
@@ -147,7 +147,9 @@ void IntelJITEventListener::notifyObject
     // 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) {




More information about the llvm-commits mailing list