diff options
author | Tom Tromey <tom@tromey.com> | 2023-04-22 12:41:43 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-05-01 09:20:37 -0600 |
commit | c819a3380fc1b110b88bc6ab5ef9323dbe7d4753 (patch) | |
tree | 05450117dff9b07e36d3ddb7bddf2fd88651c543 /gdb/compile | |
parent | 077a1f08485e88f3b234af1dbb8b907b16045e6a (diff) | |
download | binutils-c819a3380fc1b110b88bc6ab5ef9323dbe7d4753.zip binutils-c819a3380fc1b110b88bc6ab5ef9323dbe7d4753.tar.gz binutils-c819a3380fc1b110b88bc6ab5ef9323dbe7d4753.tar.bz2 |
Replace field_is_static with a method
This changes field_is_static to be a method on struct field, and
updates all the callers. Most of this patch was written by script.
Regression tested on x86-64 Fedora 36.
Diffstat (limited to 'gdb/compile')
-rw-r--r-- | gdb/compile/compile-c-symbols.c | 2 | ||||
-rw-r--r-- | gdb/compile/compile-cplus-types.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/compile/compile-c-symbols.c b/gdb/compile/compile-c-symbols.c index e21689d..617297c 100644 --- a/gdb/compile/compile-c-symbols.c +++ b/gdb/compile/compile-c-symbols.c @@ -528,7 +528,7 @@ generate_vla_size (compile_instance *compiler, int i; for (i = 0; i < type->num_fields (); ++i) - if (!field_is_static (&type->field (i))) + if (!type->field (i).is_static ()) generate_vla_size (compiler, stream, gdbarch, registers_used, pc, type->field (i).type (), sym); } diff --git a/gdb/compile/compile-cplus-types.c b/gdb/compile/compile-cplus-types.c index 02cd381..2f87ad8 100644 --- a/gdb/compile/compile-cplus-types.c +++ b/gdb/compile/compile-cplus-types.c @@ -594,7 +594,7 @@ compile_cplus_convert_struct_or_union_members gcc_type field_type = instance->convert_type (type->field (i).type ()); - if (field_is_static (&type->field (i))) + if (type->field (i).is_static ()) { CORE_ADDR physaddr; |