gdb: remove TYPE_NFIELDS macro
[deliverable/binutils-gdb.git] / gdb / typeprint.c
index e5009ea3800167af48ec4b11415201c88907848a..a46f6a564c059956b1916e32bfa78d8f4b410046 100644 (file)
@@ -619,7 +619,7 @@ print_type_scalar (struct type *type, LONGEST val, struct ui_file *stream)
     {
 
     case TYPE_CODE_ENUM:
-      len = TYPE_NFIELDS (type);
+      len = type->num_fields ();
       for (i = 0; i < len; i++)
        {
          if (TYPE_FIELD_ENUMVAL (type, i) == val)
This page took 0.023584 seconds and 4 git commands to generate.