diff --git a/bolt/lib/Core/DIEBuilder.cpp b/bolt/lib/Core/DIEBuilder.cpp --- a/bolt/lib/Core/DIEBuilder.cpp +++ b/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;