[llvm] [llvm-dwarfdump] Print symbolic names for DW_AT_LLVM_address_space (PR #220728)
Gheorghe-Teodor Bercea via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 14 13:04:46 PDT 2026
================
@@ -446,9 +447,11 @@ using HandlerFn = std::function<bool(ObjectFile &, DWARFContext &DICtx,
/// Print only DIEs that have a certain name.
static bool filterByName(
const StringSet<> &Names, DWARFDie Die, StringRef NameRef, raw_ostream &OS,
- std::function<StringRef(uint64_t RegNum, bool IsEH)> GetNameForDWARFReg) {
+ function_ref<StringRef(uint64_t RegNum, bool IsEH)> GetNameForDWARFReg,
+ function_ref<StringRef(uint64_t AS)> GetNameForDWARFAddressSpace) {
----------------
doru1004 wrote:
GetNameForDWARFReg already existed as an arg so I left it as it was before. So no more changes for that. The GetNameForDWARFAddressSpace was eliminated and is now a method. Good catch.
https://github.com/llvm/llvm-project/pull/220728
More information about the llvm-commits
mailing list