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/c-exp.y | |
parent | 8a50fdcefc44c40d5c4b978f19c22ddfbeb29139 (diff) | |
download | gdb-27710edb4e588d0360620df424dd7ee7e8cfafee.zip gdb-27710edb4e588d0360620df424dd7ee7e8cfafee.tar.gz gdb-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/c-exp.y')
-rw-r--r-- | gdb/c-exp.y | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y index 61a61fc..abd5b67 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -865,10 +865,10 @@ exp : COMPLEX_INT { operation_up real = (make_operation<long_const_operation> - (TYPE_TARGET_TYPE ($1.type), 0)); + ($1.type->target_type (), 0)); operation_up imag = (make_operation<long_const_operation> - (TYPE_TARGET_TYPE ($1.type), $1.val)); + ($1.type->target_type (), $1.val)); pstate->push_new<complex_operation> (std::move (real), std::move (imag), $1.type); } @@ -905,8 +905,7 @@ exp : FLOAT exp : COMPLEX_FLOAT { - struct type *underlying - = TYPE_TARGET_TYPE ($1.type); + struct type *underlying = $1.type->target_type (); float_data val; target_float_from_host_double (val.data (), @@ -955,7 +954,8 @@ exp : SIZEOF '(' type ')' %prec UNARY or a reference type, the result is the size of the referenced type." */ if (TYPE_IS_REFERENCE (type)) - type = check_typedef (TYPE_TARGET_TYPE (type)); + type = check_typedef (type->target_type ()); + pstate->push_new<long_const_operation> (int_type, TYPE_LENGTH (type)); } |