Pass dwarf2_cu objects to dwo-related functions, instead of dwarf2_per_cu_data
[deliverable/binutils-gdb.git] / gdb / iq2000-tdep.c
index 1767a457ca7ed2b3bfc83016988c99b3da2be308..b35b45ea4c5ebef2e2ad78a6f1bb7bd63d9f525b 100644 (file)
@@ -604,10 +604,10 @@ iq2000_pass_8bytetype_by_address (struct type *type)
       && type->code () != TYPE_CODE_UNION)
     return 0;
   /* Structs with more than 1 field are always passed by address.  */
-  if (TYPE_NFIELDS (type) != 1)
+  if (type->num_fields () != 1)
     return 1;
   /* Get field type.  */
-  ftype = (TYPE_FIELDS (type))[0].type;
+  ftype = type->field (0).type;
   /* The field type must have size 8, otherwise pass by address.  */
   if (TYPE_LENGTH (ftype) != 8)
     return 1;
This page took 0.02302 seconds and 4 git commands to generate.