gdb: remove TYPE_NFIELDS macro
[deliverable/binutils-gdb.git] / gdb / compile / compile-c-symbols.c
index ab9f4425b7c7badd4330adb5026ddc2c9802c5d1..8b3cd370aa49ba286d1dbe13efa70a23c3f9cad7 100644 (file)
@@ -526,7 +526,7 @@ generate_vla_size (compile_instance *compiler,
       {
        int i;
 
-       for (i = 0; i < TYPE_NFIELDS (type); ++i)
+       for (i = 0; i < type->num_fields (); ++i)
          if (!field_is_static (&TYPE_FIELD (type, i)))
            generate_vla_size (compiler, stream, gdbarch, registers_used, pc,
                               TYPE_FIELD_TYPE (type, i), sym);
This page took 0.023777 seconds and 4 git commands to generate.