[PATCH] D59162: Fix Perf build failure due to getLineInfoForAddress API change

Christy Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 8 15:32:24 PST 2019


christylee created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

https://reviews.llvm.org/D58194 added SectionedAddress to DebugInfo interfaces but the change was not reflected in llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp.  The build failure is only observed when the build is configured with `-DLLVM_USE_PERF=ON`.


Repository:
  rL LLVM

https://reviews.llvm.org/D59162

Files:
  llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp


Index: llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
===================================================================
--- llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
+++ llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
@@ -267,11 +267,13 @@
     }
     uint64_t Addr = *AddrOrErr;
     uint64_t Size = P.second;
+    object::SectionedAddress SectionedAddress = object::SectionedAddress();
+    SectionedAddress.Address = Addr;
 
     // According to spec debugging info has to come before loading the
     // corresonding code load.
     DILineInfoTable Lines = Context->getLineInfoForAddressRange(
-        Addr, Size, FileLineInfoKind::AbsoluteFilePath);
+        SectionedAddress, Size, FileLineInfoKind::AbsoluteFilePath);
 
     NotifyDebug(Addr, Lines);
     NotifyCode(Name, Addr, Size);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59162.189954.patch
Type: text/x-patch
Size: 851 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190308/13eccc8c/attachment.bin>


More information about the llvm-commits mailing list