[Lldb-commits] [lldb] [llvm] [lldb] Support DW_AT_address_class on pointer types in DWARFASTParserClang (PR #230555)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 28 02:26:06 PDT 2026


================
@@ -399,6 +402,12 @@ class CompilerType {
   /// supports ptrauth modifiers, else return an invalid type. Note that this
   /// does not check if this type is a pointer.
   CompilerType AddPtrAuthModifier(uint32_t payload) const;
+
+  /// Return a new CompilerType that qualifies this type with the given target
+  /// address space (DWARF address class) if this type is valid and the type
+  /// system supports target address spaces. Passing 0 (DW_ADDR_none) returns
+  /// this type unchanged.
+  CompilerType AddAddressSpaceModifier(uint32_t address_space) const;
----------------
Michael137 wrote:

I think the `uint32_t` here should represent a clang::LangAS, not the DWARF address class.

TypeSystemClang shouldn't be DWARF-aware

https://github.com/llvm/llvm-project/pull/230555


More information about the lldb-commits mailing list