[llvm] [TOOLS][DWARFDUMP][DWARF] Print full DIE offset for a CU or local TU (PR #121877)
Greg Clayton via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 10 11:12:28 PST 2025
================
@@ -732,7 +732,19 @@ void DWARFDebugNames::Entry::dump(ScopedPrinter &W) const {
dumpParentIdx(W, FormValue);
else
FormValue.dump(W.getOStream());
- W.getOStream() << '\n';
+
+ if (Index != dwarf::Index::DW_IDX_die_offset) {
+ W.getOStream() << '\n';
+ continue;
+ }
+
+ if (const std::optional<uint64_t> DieOfset = getDIEUnitOffset()) {
----------------
clayborg wrote:
`s/DieOfset/DieOffset/`
https://github.com/llvm/llvm-project/pull/121877
More information about the llvm-commits
mailing list