aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc-tdep.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2022-07-30 22:43:54 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2022-09-21 10:59:49 -0400
commit27710edb4e588d0360620df424dd7ee7e8cfafee (patch)
treeaf4da9f4c7e032ab6653536f2a991cbe09cee759 /gdb/sparc-tdep.c
parent8a50fdcefc44c40d5c4b978f19c22ddfbeb29139 (diff)
downloadbinutils-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/sparc-tdep.c')
-rw-r--r--gdb/sparc-tdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c
index 0f5da2c..e7fb040 100644
--- a/gdb/sparc-tdep.c
+++ b/gdb/sparc-tdep.c
@@ -302,7 +302,7 @@ sparc_structure_return_p (const struct type *type)
if (type->code () == TYPE_CODE_ARRAY && type->is_vector ())
{
/* Float vectors are always returned by memory. */
- if (sparc_floating_p (check_typedef (TYPE_TARGET_TYPE (type))))
+ if (sparc_floating_p (check_typedef (type->target_type ())))
return true;
/* Integer vectors are returned by memory if the vector size
is greater than 8 bytes long. */
@@ -330,7 +330,7 @@ sparc_arg_by_memory_p (const struct type *type)
if (type->code () == TYPE_CODE_ARRAY && type->is_vector ())
{
/* Float vectors are always passed by memory. */
- if (sparc_floating_p (check_typedef (TYPE_TARGET_TYPE (type))))
+ if (sparc_floating_p (check_typedef (type->target_type ())))
return true;
/* Integer vectors are passed by memory if the vector size
is greater than 8 bytes long. */
@@ -1234,7 +1234,7 @@ sparc32_struct_return_from_sym (struct symbol *sym)
if (code == TYPE_CODE_FUNC || code == TYPE_CODE_METHOD)
{
- type = check_typedef (TYPE_TARGET_TYPE (type));
+ type = check_typedef (type->target_type ());
if (sparc_structure_or_union_p (type)
|| (sparc_floating_p (type) && TYPE_LENGTH (type) == 16))
return 1;