[PATCH] D59189: [perf][DebugInfo] follow up for "add SectionedAddress to DebugInfo interfaces"
Sylvestre Ledru via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 10 08:58:08 PDT 2019
sylvestre.ledru created this revision.
sylvestre.ledru added reviewers: avl, dblaikie.
Herald added a project: LLVM.
Fix the build failure when perf jit is enabled
Repository:
rL LLVM
https://reviews.llvm.org/D59189
Files:
lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
Index: lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
===================================================================
--- lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
+++ lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
@@ -265,16 +265,16 @@
consumeError(AddrOrErr.takeError());
continue;
}
- uint64_t Addr = *AddrOrErr;
uint64_t Size = P.second;
-
+ object::SectionedAddress Address;
+ Address.Address = *AddrOrErr;
// According to spec debugging info has to come before loading the
// corresonding code load.
DILineInfoTable Lines = Context->getLineInfoForAddressRange(
- Addr, Size, FileLineInfoKind::AbsoluteFilePath);
+ Address, Size, FileLineInfoKind::AbsoluteFilePath);
- NotifyDebug(Addr, Lines);
- NotifyCode(Name, Addr, Size);
+ NotifyDebug(*AddrOrErr, Lines);
+ NotifyCode(Name, *AddrOrErr, Size);
}
Dumpstream->flush();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59189.190011.patch
Type: text/x-patch
Size: 956 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190310/22987ebe/attachment.bin>
More information about the llvm-commits
mailing list