@@ -1222,11 +1222,9 @@ DWARFASTParserClang::ParseSubroutine(const DWARFDIE &die,
1222
1222
}
1223
1223
1224
1224
if (die.HasChildren ()) {
1225
- bool skip_artificial = true ;
1226
- ParseChildParameters (containing_decl_ctx, die, skip_artificial, is_static,
1227
- is_variadic, has_template_params,
1228
- function_param_types, function_param_decls,
1229
- type_quals);
1225
+ ParseChildParameters (containing_decl_ctx, die, is_static, is_variadic,
1226
+ has_template_params, function_param_types,
1227
+ function_param_decls, type_quals);
1230
1228
}
1231
1229
1232
1230
bool ignore_containing_context = false ;
@@ -2325,7 +2323,7 @@ DWARFASTParserClang::ConstructDemangledNameFromDWARF(const DWARFDIE &die) {
2325
2323
2326
2324
clang::DeclContext *containing_decl_ctx =
2327
2325
GetClangDeclContextContainingDIE (die, nullptr );
2328
- ParseChildParameters (containing_decl_ctx, die, true , is_static, is_variadic,
2326
+ ParseChildParameters (containing_decl_ctx, die, is_static, is_variadic,
2329
2327
has_template_params, param_types, param_decls,
2330
2328
type_quals);
2331
2329
sstr << " (" ;
@@ -3069,8 +3067,8 @@ bool DWARFASTParserClang::ParseChildMembers(
3069
3067
3070
3068
size_t DWARFASTParserClang::ParseChildParameters (
3071
3069
clang::DeclContext *containing_decl_ctx, const DWARFDIE &parent_die,
3072
- bool skip_artificial , bool &is_static , bool &is_variadic ,
3073
- bool &has_template_params, std::vector<CompilerType> &function_param_types,
3070
+ bool &is_static , bool &is_variadic , bool &has_template_params ,
3071
+ std::vector<CompilerType> &function_param_types,
3074
3072
std::vector<clang::ParmVarDecl *> &function_param_decls,
3075
3073
unsigned &type_quals) {
3076
3074
if (!parent_die)
@@ -3125,7 +3123,7 @@ size_t DWARFASTParserClang::ParseChildParameters(
3125
3123
}
3126
3124
3127
3125
bool skip = false ;
3128
- if (skip_artificial && is_artificial) {
3126
+ if (is_artificial) {
3129
3127
// In order to determine if a C++ member function is "const" we
3130
3128
// have to look at the const-ness of "this"...
3131
3129
if (arg_idx == 0 &&
0 commit comments