summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorAlexey Lapshin <a.v.lapshin@mail.ru>2019-02-27 18:36:46 +0000
committerAlexey Lapshin <a.v.lapshin@mail.ru>2019-02-27 18:36:46 +0000
commitd89d6380558fff7a9e484ad34d2a1d0cd5dff809 (patch)
tree045fccacd58e2af047a440384ceded8f1a96e519 /llvm/lib/ExecutionEngine
parentc5792aa90fa45a1842f190c146f19e2c71ea6fbd (diff)
downloadbcm5719-llvm-d89d6380558fff7a9e484ad34d2a1d0cd5dff809.tar.gz
bcm5719-llvm-d89d6380558fff7a9e484ad34d2a1d0cd5dff809.zip
Attempt to fix buildbot after r354972 [#1]. NFCI.
llvm-svn: 355013
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp b/llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp
index 4e8360649bc..2b89f9d16fa 100644
--- a/llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp
+++ b/llvm/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) {
OpenPOWER on IntegriCloud