gdb: make get_dyn_prop a method of struct type
[deliverable/binutils-gdb.git] / gdb / rust-lang.c
index 20661e48d96a44d2f2f9ff03793fdb2c33ca88da..f2fb0119b00c7a35f1034dfe65efc3b1d32470b8 100644 (file)
@@ -708,8 +708,7 @@ rust_print_struct_def (struct type *type, const char *varstring,
       if (is_enum)
        {
          fputs_filtered ("enum ", stream);
-         struct dynamic_prop *prop = get_dyn_prop (DYN_PROP_VARIANT_PARTS,
-                                                   type);
+         dynamic_prop *prop = type->dyn_prop (DYN_PROP_VARIANT_PARTS);
          if (prop != nullptr && prop->kind == PROP_TYPE)
            type = prop->data.original_type;
        }
This page took 0.036466 seconds and 4 git commands to generate.