diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2022-07-30 22:43:54 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-09-21 10:59:49 -0400 |
commit | 27710edb4e588d0360620df424dd7ee7e8cfafee (patch) | |
tree | af4da9f4c7e032ab6653536f2a991cbe09cee759 /gdb/p-exp.y | |
parent | 8a50fdcefc44c40d5c4b978f19c22ddfbeb29139 (diff) | |
download | binutils-27710edb4e588d0360620df424dd7ee7e8cfafee.zip binutils-27710edb4e588d0360620df424dd7ee7e8cfafee.tar.gz binutils-27710edb4e588d0360620df424dd7ee7e8cfafee.tar.bz2 |
gdb: remove TYPE_TARGET_TYPE
Remove the macro, replace all uses by calls to type::target_type.
Change-Id: Ie51d3e1e22f94130176d6abd723255282bb6d1ed
Diffstat (limited to 'gdb/p-exp.y')
-rw-r--r-- | gdb/p-exp.y | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/p-exp.y b/gdb/p-exp.y index 2df41b8..eed41dc 100644 --- a/gdb/p-exp.y +++ b/gdb/p-exp.y @@ -220,7 +220,7 @@ exp1 : exp exp : exp '^' %prec UNARY { pstate->wrap<unop_ind_operation> (); if (current_type) - current_type = TYPE_TARGET_TYPE (current_type); } + current_type = current_type->target_type (); } ; exp : '@' exp %prec UNARY @@ -260,7 +260,7 @@ exp : field_exp FIELDNAME while (current_type->code () == TYPE_CODE_PTR) current_type = - TYPE_TARGET_TYPE (current_type); + current_type->target_type (); current_type = lookup_struct_elt_type ( current_type, $2.ptr, 0); } @@ -278,7 +278,7 @@ exp : field_exp name while (current_type->code () == TYPE_CODE_PTR) current_type = - TYPE_TARGET_TYPE (current_type); + current_type->target_type (); current_type = lookup_struct_elt_type ( current_type, $2.ptr, 0); } @@ -321,7 +321,7 @@ exp : exp '[' { pop_current_type (); pstate->wrap2<subscript_operation> (); if (current_type) - current_type = TYPE_TARGET_TYPE (current_type); } + current_type = current_type->target_type (); } ; exp : exp '(' @@ -337,7 +337,7 @@ exp : exp '(' (pstate->pop (), std::move (args)); pop_current_type (); if (current_type) - current_type = TYPE_TARGET_TYPE (current_type); + current_type = current_type->target_type (); } ; @@ -353,7 +353,7 @@ exp : type '(' exp ')' %prec UNARY { /* Allow automatic dereference of classes. */ if ((current_type->code () == TYPE_CODE_PTR) - && (TYPE_TARGET_TYPE (current_type)->code () == TYPE_CODE_STRUCT) + && (current_type->target_type ()->code () == TYPE_CODE_STRUCT) && (($1)->code () == TYPE_CODE_STRUCT)) pstate->wrap<unop_ind_operation> (); } @@ -598,7 +598,7 @@ exp : THIS { if (this_type->code () == TYPE_CODE_PTR) { - this_type = TYPE_TARGET_TYPE (this_type); + this_type = this_type->target_type (); pstate->wrap<unop_ind_operation> (); } } |