mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07: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:
@@ -1536,7 +1536,7 @@ gnuv3_pass_by_reference (struct type *type)
|
||||
about recursive loops here, since we are only looking at members
|
||||
of complete class type. Also ignore any static members. */
|
||||
for (fieldnum = 0; fieldnum < type->num_fields (); fieldnum++)
|
||||
if (!field_is_static (&type->field (fieldnum)))
|
||||
if (!type->field (fieldnum).is_static ())
|
||||
{
|
||||
struct type *field_type = type->field (fieldnum).type ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user