mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-25 16:57:52 +00:00
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:
@@ -1113,7 +1113,7 @@ c_type_print_base_struct_union (struct type *type, struct ui_file *stream,
|
||||
TYPE_FIELD_PRIVATE (type, i), flags);
|
||||
}
|
||||
|
||||
bool is_static = field_is_static (&type->field (i));
|
||||
bool is_static = type->field (i).is_static ();
|
||||
|
||||
if (flags->print_offsets)
|
||||
podata->update (type, i, stream);
|
||||
|
||||
Reference in New Issue
Block a user