[Lldb-commits] [lldb] [lldb] Support DW_AT_address_class in DWARFASTParserClang (PR #230555)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Sun Oct 18 06:03:41 PDT 2026
================
@@ -3750,6 +3750,30 @@ bool TypeSystemClang::HasPointerAuthQualifier(
return GetCanonicalQualType(type).getPointerAuth().isPresent();
}
+std::optional<uint32_t>
+TypeSystemClang::GetTargetAddressSpace(lldb::opaque_compiler_type_t type) {
+ if (!type)
+ return std::nullopt;
+ clang::LangAS as = GetCanonicalQualType(type).getAddressSpace();
+ if (!clang::isTargetAddressSpace(as))
+ return std::nullopt;
+ return clang::toTargetAddressSpace(as);
+}
+
+CompilerType TypeSystemClang::AddAddressSpaceModifier(const CompilerType &type,
----------------
Michael137 wrote:
See my other comment. Might want to model it like the `AddPtrAuthModifier` API
https://github.com/llvm/llvm-project/pull/230555
More information about the lldb-commits
mailing list