[Lldb-commits] [lldb] [lldb][DWARFASTParserClang][NFC] Remove redundant parameter to ParseChildParameters (PR #121033)

2025-01-02 Thread Michael Buch via lldb-commits

https://github.com/Michael137 closed 
https://github.com/llvm/llvm-project/pull/121033
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits


[Lldb-commits] [lldb] 67c974b - [lldb][DWARFASTParserClang][NFC] Remove redundant parameter to ParseChildParameters (#121033)

2025-01-02 Thread via lldb-commits

Author: Michael Buch
Date: 2025-01-02T12:26:34Z
New Revision: 67c974bfd6b3dbba83865e8319a3e9d3274a44e9

URL: 
https://github.com/llvm/llvm-project/commit/67c974bfd6b3dbba83865e8319a3e9d3274a44e9
DIFF: 
https://github.com/llvm/llvm-project/commit/67c974bfd6b3dbba83865e8319a3e9d3274a44e9.diff

LOG: [lldb][DWARFASTParserClang][NFC] Remove redundant parameter to 
ParseChildParameters (#121033)

This was never set to anything other than `true`.

Added: 


Modified: 
lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.h

Removed: 




diff  --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp 
b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
index 28e7cceb397154..e2f76e88dd6f0f 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
@@ -1222,11 +1222,9 @@ DWARFASTParserClang::ParseSubroutine(const DWARFDIE &die,
   }
 
   if (die.HasChildren()) {
-bool skip_artificial = true;
-ParseChildParameters(containing_decl_ctx, die, skip_artificial, is_static,
- is_variadic, has_template_params,
- function_param_types, function_param_decls,
- type_quals);
+ParseChildParameters(containing_decl_ctx, die, is_static, is_variadic,
+ has_template_params, function_param_types,
+ function_param_decls, type_quals);
   }
 
   bool ignore_containing_context = false;
@@ -2325,7 +2323,7 @@ 
DWARFASTParserClang::ConstructDemangledNameFromDWARF(const DWARFDIE &die) {
 
   clang::DeclContext *containing_decl_ctx =
   GetClangDeclContextContainingDIE(die, nullptr);
-  ParseChildParameters(containing_decl_ctx, die, true, is_static, is_variadic,
+  ParseChildParameters(containing_decl_ctx, die, is_static, is_variadic,
has_template_params, param_types, param_decls,
type_quals);
   sstr << "(";
@@ -3069,8 +3067,8 @@ bool DWARFASTParserClang::ParseChildMembers(
 
 size_t DWARFASTParserClang::ParseChildParameters(
 clang::DeclContext *containing_decl_ctx, const DWARFDIE &parent_die,
-bool skip_artificial, bool &is_static, bool &is_variadic,
-bool &has_template_params, std::vector &function_param_types,
+bool &is_static, bool &is_variadic, bool &has_template_params,
+std::vector &function_param_types,
 std::vector &function_param_decls,
 unsigned &type_quals) {
   if (!parent_die)
@@ -3125,7 +3123,7 @@ size_t DWARFASTParserClang::ParseChildParameters(
   }
 
   bool skip = false;
-  if (skip_artificial && is_artificial) {
+  if (is_artificial) {
 // In order to determine if a C++ member function is "const" we
 // have to look at the const-ness of "this"...
 if (arg_idx == 0 &&

diff  --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.h 
b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.h
index 55f8e38d7486d6..5b1c204bbe8155 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.h
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.h
@@ -189,7 +189,7 @@ class DWARFASTParserClang : public 
lldb_private::plugin::dwarf::DWARFASTParser {
   size_t
   ParseChildParameters(clang::DeclContext *containing_decl_ctx,
const lldb_private::plugin::dwarf::DWARFDIE &parent_die,
-   bool skip_artificial, bool &is_static, bool 
&is_variadic,
+   bool &is_static, bool &is_variadic,
bool &has_template_params,
std::vector &function_args,
std::vector &function_param_decls,



___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits