[PATCH] D127078: llvm-dwarf-dump: include type name for AT_containing_type

Paul Robinson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 8 13:47:16 PDT 2022


probinson added a comment.

In D127078#3561950 <https://reviews.llvm.org/D127078#3561950>, @dblaikie wrote:

> Sounds good to me - is there any canonical list in the DWARF spec of attributes that are types that we should consider?

I'm not aware of any list of "attributes that point to types" and I think DW_AT_type/DW_AT_containing_type covers the interesting cases.  I skimmed the list of all attributes (DWARF v5 section 7.5.4) and nothing obvious caught my eye.

> Or should we change this to work based on the type of the DIE being referenced, instead of the attribute doing the referencing?

That would catch cases like DW_AT_sibling, if the sibling just happened to be a type, and I don't think that's really useful.  (I know LLVM doesn't emit DW_AT_sibling, but it's still out there in the wild and the dumper needs to handle it.)

I'm fine with this patch as is.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D127078



More information about the llvm-commits mailing list