aboutsummaryrefslogtreecommitdiff
path: root/gdb/s12z-tdep.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2022-09-21 11:05:21 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2022-09-21 11:05:21 -0400
commitdf86565b31bf12aab6fdceade49169bc6f378b13 (patch)
tree76d5944661919552ce4ea01ac49188e151d72fa7 /gdb/s12z-tdep.c
parentb6cdbc9a8173b9e6cc8cfc284caa0efa8129ca02 (diff)
downloadgdb-df86565b31bf12aab6fdceade49169bc6f378b13.zip
gdb-df86565b31bf12aab6fdceade49169bc6f378b13.tar.gz
gdb-df86565b31bf12aab6fdceade49169bc6f378b13.tar.bz2
gdb: remove TYPE_LENGTH
Remove the macro, replace all uses with calls to type::length. Change-Id: Ib9bdc954576860b21190886534c99103d6a47afb
Diffstat (limited to 'gdb/s12z-tdep.c')
-rw-r--r--gdb/s12z-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/s12z-tdep.c b/gdb/s12z-tdep.c
index 5e49c61..c447547 100644
--- a/gdb/s12z-tdep.c
+++ b/gdb/s12z-tdep.c
@@ -557,7 +557,7 @@ s12z_extract_return_value (struct type *type, struct regcache *regcache,
{
int reg = -1;
- switch (TYPE_LENGTH (type))
+ switch (type->length ())
{
case 0: /* Nothing to do */
return;
@@ -594,7 +594,7 @@ s12z_return_value (struct gdbarch *gdbarch, struct value *function,
if (type->code () == TYPE_CODE_STRUCT
|| type->code () == TYPE_CODE_UNION
|| type->code () == TYPE_CODE_ARRAY
- || TYPE_LENGTH (type) > 4)
+ || type->length () > 4)
return RETURN_VALUE_STRUCT_CONVENTION;
if (readbuf)