[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.