From 8ee511afd84972c2019518725295440b3d2676bc Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 28 Jan 2021 10:12:10 -0500 Subject: gdb: rename get_type_arch to type::arch ... and update all users. gdb/ChangeLog: * gdbtypes.h (get_type_arch): Rename to... (struct type) : ... this, update all users. Change-Id: I0e3ef938a0afe798ac0da74a9976bbd1d082fc6f --- gdb/f-lang.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/f-lang.c') diff --git a/gdb/f-lang.c b/gdb/f-lang.c index 8329109..bd6ef20 100644 --- a/gdb/f-lang.c +++ b/gdb/f-lang.c @@ -82,7 +82,7 @@ f_language::get_encoding (struct type *type) switch (TYPE_LENGTH (type)) { case 1: - encoding = target_charset (get_type_arch (type)); + encoding = target_charset (type->arch ()); break; case 4: if (type_byte_order (type) == BFD_ENDIAN_BIG) @@ -1416,8 +1416,8 @@ fortran_adjust_dynamic_array_base_address_hack (struct type *type, stride = type_length_units (elt_type); else { - struct gdbarch *arch = get_type_arch (elt_type); - int unit_size = gdbarch_addressable_memory_unit_size (arch); + int unit_size + = gdbarch_addressable_memory_unit_size (elt_type->arch ()); stride /= (unit_size * 8); } -- cgit v1.1