gdb: remove TYPE_NFIELDS macro
[deliverable/binutils-gdb.git] / gdb / nds32-tdep.c
index d4d07c030f1bd95bad99485aa0a6f0c06704ed71..d403b71f10b0e9c4ff17f9dfbc2df0ce7485995f 100644 (file)
@@ -1405,7 +1405,7 @@ nds32_check_calling_use_fpr (struct type *type)
       typecode = t->code ();
       if (typecode != TYPE_CODE_STRUCT)
        break;
-      else if (TYPE_NFIELDS (t) != 1)
+      else if (t->num_fields () != 1)
        return 0;
       else
        t = TYPE_FIELD_TYPE (t, 0);
@@ -1496,7 +1496,7 @@ nds32_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
         and pushes all unnamed arguments in stack.  */
 
       if (abi_use_fpr && TYPE_VARARGS (func_type)
-         && i >= TYPE_NFIELDS (func_type))
+         && i >= func_type->num_fields ())
        goto use_stack;
 
       /* Try to use FPRs to pass arguments only when
This page took 0.02393 seconds and 4 git commands to generate.