gdb: remove TYPE_NFIELDS macro
[deliverable/binutils-gdb.git] / gdb / aarch64-tdep.c
index 37d75a81f08a4d80c0e93d46f71edcf9943e5036..2872d2d2bf7f23b36057229cf869bc600fe44c39 100644 (file)
@@ -1346,7 +1346,7 @@ aapcs_is_vfp_call_or_return_candidate_1 (struct type *type,
       {
        int count = 0;
 
-       for (int i = 0; i < TYPE_NFIELDS (type); i++)
+       for (int i = 0; i < type->num_fields (); i++)
          {
            /* Ignore any static fields.  */
            if (field_is_static (&TYPE_FIELD (type, i)))
@@ -1628,7 +1628,7 @@ pass_in_v_vfp_candidate (struct gdbarch *gdbarch, struct regcache *regcache,
 
     case TYPE_CODE_STRUCT:
     case TYPE_CODE_UNION:
-      for (int i = 0; i < TYPE_NFIELDS (arg_type); i++)
+      for (int i = 0; i < arg_type->num_fields (); i++)
        {
          /* Don't include static fields.  */
          if (field_is_static (&TYPE_FIELD (arg_type, i)))
This page took 0.024117 seconds and 4 git commands to generate.