[PATCH] D155031: [BOLT][DWARF][NFC] Set initial offset of DIE

Alexander Yermolovich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 13 10:45:13 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG41afc4267314: [BOLT][DWARF][NFC] Set initial offset of DIE (authored by ayermolo).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D155031/new/

https://reviews.llvm.org/D155031

Files:
  bolt/lib/Core/DIEBuilder.cpp


Index: bolt/lib/Core/DIEBuilder.cpp
===================================================================
--- bolt/lib/Core/DIEBuilder.cpp
+++ bolt/lib/Core/DIEBuilder.cpp
@@ -290,6 +290,10 @@
   DIEInfo &DieInfo = getDIEInfo(UnitId, *Idx);
 
   uint64_t Offset = DDie.getOffset();
+  // Just for making debugging easier.
+  // DIE dump is not very useful.
+  // It's nice to know original offset from which this DIE was constructed.
+  DieInfo.Die->setOffset(Offset);
   uint64_t NextOffset = Offset;
   DWARFDataExtractor Data = U.getDebugInfoExtractor();
   DWARFDebugInfoEntry DDIEntry;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155031.540105.patch
Type: text/x-patch
Size: 589 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230713/87ddfbdd/attachment.bin>


More information about the llvm-commits mailing list