diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 07:52:09 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:21:06 -0700 |
commit | d0c9791728caa0d3b3270a997c7fd97919976c97 (patch) | |
tree | 1753b7232efa89e05696d4289d60ad019fc161e4 /gdb/rs6000-aix-tdep.c | |
parent | 7cf57bc5be656c62cc6b80280a9eddad2b8ded3f (diff) | |
download | fsf-binutils-gdb-d0c9791728caa0d3b3270a997c7fd97919976c97.zip fsf-binutils-gdb-d0c9791728caa0d3b3270a997c7fd97919976c97.tar.gz fsf-binutils-gdb-d0c9791728caa0d3b3270a997c7fd97919976c97.tar.bz2 |
Turn value_type into method
This changes value_type to be a method of value. Much of this patch
was written by script.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/rs6000-aix-tdep.c')
-rw-r--r-- | gdb/rs6000-aix-tdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/rs6000-aix-tdep.c b/gdb/rs6000-aix-tdep.c index 2c610af..579f85f 100644 --- a/gdb/rs6000-aix-tdep.c +++ b/gdb/rs6000-aix-tdep.c @@ -350,7 +350,7 @@ rs6000_push_dummy_call (struct gdbarch *gdbarch, struct value *function, int reg_size = register_size (gdbarch, ii + 3); arg = args[argno]; - type = check_typedef (value_type (arg)); + type = check_typedef (arg->type ()); len = type->length (); if (type->code () == TYPE_CODE_FLT) @@ -447,7 +447,7 @@ ran_out_of_registers_for_arguments: for (; jj < nargs; ++jj) { struct value *val = args[jj]; - space += ((value_type (val)->length ()) + 3) & -4; + space += ((val->type ()->length ()) + 3) & -4; } /* Add location required for the rest of the parameters. */ @@ -480,7 +480,7 @@ ran_out_of_registers_for_arguments: { arg = args[argno]; - type = check_typedef (value_type (arg)); + type = check_typedef (arg->type ()); len = type->length (); |