gdb: make get_dyn_prop a method of struct type
[deliverable/binutils-gdb.git] / gdb / ada-typeprint.c
index 83972fe125dc24103c8df54212d8c444931232c4..7ef8bd5ef9e154bf08fd64ab070f16fd6eee6472 100644 (file)
@@ -776,13 +776,13 @@ print_record_field_types (struct type *type, struct type *outer_type,
                          struct ui_file *stream, int show, int level,
                          const struct type_print_options *flags)
 {
-  struct dynamic_prop *prop = get_dyn_prop (DYN_PROP_VARIANT_PARTS, type);
+  struct dynamic_prop *prop = type->dyn_prop (DYN_PROP_VARIANT_PARTS);
   if (prop != nullptr)
     {
       if (prop->kind == PROP_TYPE)
        {
          type = prop->data.original_type;
-         prop = get_dyn_prop (DYN_PROP_VARIANT_PARTS, type);
+         prop = type->dyn_prop (DYN_PROP_VARIANT_PARTS);
        }
       gdb_assert (prop->kind == PROP_VARIANT_PARTS);
       print_record_field_types_dynamic (*prop->data.variant_parts,
This page took 0.023642 seconds and 4 git commands to generate.