https://github.com/Michael137 created https://github.com/llvm/llvm-project/pull/183024
In https://github.com/llvm/llvm-project/pull/182956 we stopped using access specifiers from DWARF for most Clang decls we create. This parameter no longer needs to be modified and we can make it a `const-ref`. >From 00e9746efe6a9fe06172a29210195ea68b6fbf33 Mon Sep 17 00:00:00 2001 From: Michael Buch <[email protected]> Date: Tue, 24 Feb 2026 10:10:32 +0000 Subject: [PATCH] [lldb][DWARFASTParserClang][NFC] Make ParsedDWARFTypeAttributes parameter a const-ref In https://github.com/llvm/llvm-project/pull/182956 we stopped using access specifiers from DWARF for most Clang decls we create. This parameter no longer needs to be modified and we can make it a `const-ref`. --- lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp | 2 +- lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp index d11168387e433..91304476ffe8f 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp @@ -1752,7 +1752,7 @@ void DWARFASTParserClang::GetUniqueTypeNameAndDeclaration( TypeSP DWARFASTParserClang::ParseStructureLikeDIE(const SymbolContext &sc, const DWARFDIE &die, - ParsedDWARFTypeAttributes &attrs) { + const ParsedDWARFTypeAttributes &attrs) { CompilerType clang_type; const dw_tag_t tag = die.Tag(); SymbolFileDWARF *dwarf = die.GetDWARF(); diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.h b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.h index 5f3ad988874f8..e843a315337f4 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.h +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.h @@ -221,7 +221,7 @@ class DWARFASTParserClang : public lldb_private::plugin::dwarf::DWARFASTParser { lldb::TypeSP ParseStructureLikeDIE(const lldb_private::SymbolContext &sc, const lldb_private::plugin::dwarf::DWARFDIE &die, - ParsedDWARFTypeAttributes &attrs); + const ParsedDWARFTypeAttributes &attrs); clang::Decl * GetClangDeclForDIE(const lldb_private::plugin::dwarf::DWARFDIE &die); _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
