aboutsummaryrefslogtreecommitdiff
path: root/gdb/rl78-tdep.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-31 10:19:10 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:21:07 -0700
commit463b870d01ae26aa3366e99fb86416b1c67f8061 (patch)
tree9d25835efdc8b9ccbc431c304d4b6e6cfefcff0a /gdb/rl78-tdep.c
parent4b53ca88831137e94a6882f224d755a2d32ab8ef (diff)
downloadgdb-463b870d01ae26aa3366e99fb86416b1c67f8061.zip
gdb-463b870d01ae26aa3366e99fb86416b1c67f8061.tar.gz
gdb-463b870d01ae26aa3366e99fb86416b1c67f8061.tar.bz2
Turn value_enclosing_type into method
This changes value_enclosing_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/rl78-tdep.c')
-rw-r--r--gdb/rl78-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rl78-tdep.c b/gdb/rl78-tdep.c
index 4979e09..cd84666 100644
--- a/gdb/rl78-tdep.c
+++ b/gdb/rl78-tdep.c
@@ -1340,7 +1340,7 @@ rl78_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
/* Push arguments in reverse order. */
for (i = nargs - 1; i >= 0; i--)
{
- struct type *value_type = value_enclosing_type (args[i]);
+ struct type *value_type = args[i]->enclosing_type ();
int len = value_type->length ();
int container_len = (len + 1) & ~1;