forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user