[PATCH] D55689: [llvm-xray] Store offset pointers in temporaries
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 13 21:59:41 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL349129: [llvm-xray] Store offset pointers in temporaries (authored by phosek, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D55689?vs=178172&id=178176#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55689/new/
https://reviews.llvm.org/D55689
Files:
llvm/trunk/lib/XRay/InstrumentationMap.cpp
Index: llvm/trunk/lib/XRay/InstrumentationMap.cpp
===================================================================
--- llvm/trunk/lib/XRay/InstrumentationMap.cpp
+++ llvm/trunk/lib/XRay/InstrumentationMap.cpp
@@ -137,8 +137,10 @@
Sleds.push_back({});
auto &Entry = Sleds.back();
uint32_t OffsetPtr = 0;
- Entry.Address = RelocateOrElse(OffsetPtr, Extractor.getU64(&OffsetPtr));
- Entry.Function = RelocateOrElse(OffsetPtr, Extractor.getU64(&OffsetPtr));
+ uint32_t AddrPtr = OffsetPtr;
+ Entry.Address = RelocateOrElse(AddrOff, Extractor.getU64(&OffsetPtr));
+ uint32_t FuncPtr = OffsetPtr;
+ Entry.Function = RelocateOrElse(FuncOff, Extractor.getU64(&OffsetPtr));
auto Kind = Extractor.getU8(&OffsetPtr);
static constexpr SledEntry::FunctionKinds Kinds[] = {
SledEntry::FunctionKinds::ENTRY, SledEntry::FunctionKinds::EXIT,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55689.178176.patch
Type: text/x-patch
Size: 880 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181214/3d0a23f4/attachment.bin>
More information about the llvm-commits
mailing list