[all-commits] [llvm/llvm-project] 4f9feb: [llvm-dwarfdump] Print symbolic names for DW_AT_LL...

Gheorghe-Teodor Bercea via All-commits all-commits at lists.llvm.org
Wed Sep 30 07:16:40 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f9feb85267c08ec29ea8bb2f80a3d0cd7ab925f
      https://github.com/llvm/llvm-project/commit/4f9feb85267c08ec29ea8bb2f80a3d0cd7ab925f
  Author: Gheorghe-Teodor Bercea <gt.bercea at gmail.com>
  Date:   2026-09-30 (Wed, 30 Sep 2026)

  Changed paths:
    M llvm/include/llvm/DebugInfo/DIContext.h
    M llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
    A llvm/test/tools/llvm-dwarfdump/AMDGPU/DW_AT_LLVM_address_space.yaml
    M llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp

  Log Message:
  -----------
  [llvm-dwarfdump] Print symbolic names for DW_AT_LLVM_address_space (#220728)

DW_AT_LLVM_address_space is already defined in Dwarf.def, and
dwarf::AddressSpaceString() already maps its values to names, resolving
target-specific spaces through the triple. Nothing wired the two
together,
so the attribute was only ever printed as a bare integer.

Add a GetNameForDWARFAddressSpace callback to DIDumpOptions, alongside
the
existing GetNameForDWARFReg, and have llvm-dwarfdump populate it from
the
triple of the object being dumped. Values with no name for the target
continue to print as plain integers.

DWARFDie.cpp already special-cases other DW_AT_LLVM_* attributes such as
DW_AT_LLVM_virtual_call_origin, so this follows the existing pattern.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list