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

via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 28 10:10:00 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;
----------------
halehri wrote:

Done, updated `TypeSystemClang::AddAddressSpaceModifier` to unpack `clang::LangAS` directly (matching `AddPtrAuthModifier`).

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


More information about the lldb-commits mailing list