aboutsummaryrefslogtreecommitdiff
path: root/gdb/bfin-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/bfin-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/bfin-tdep.c')
-rw-r--r--gdb/bfin-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/bfin-tdep.c b/gdb/bfin-tdep.c
index 4d84407..e1be4b7 100644
--- a/gdb/bfin-tdep.c
+++ b/gdb/bfin-tdep.c
@@ -509,7 +509,7 @@ bfin_push_dummy_call (struct gdbarch *gdbarch,
for (i = nargs - 1; i >= 0; i--)
{
- struct type *value_type = value_enclosing_type (args[i]);
+ struct type *value_type = args[i]->enclosing_type ();
total_len += align_up (value_type->length (), 4);
}
@@ -525,7 +525,7 @@ bfin_push_dummy_call (struct gdbarch *gdbarch,
for (i = nargs - 1; i >= 0; i--)
{
- struct type *value_type = value_enclosing_type (args[i]);
+ struct type *value_type = args[i]->enclosing_type ();
struct type *arg_type = check_typedef (value_type);
int container_len = align_up (arg_type->length (), 4);