gdb: remove TYPE_DYN_PROP_ADDR

Remove TYPE_DYN_PROP_ADDR, replacing its uses with calling
dynamic_prop::const_val directly.

gdb/ChangeLog:

	* gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
	dynamic_prop::const_val.

Change-Id: Ie99b9cd9a0627488c1c69a75e57f020d34e392af
This commit is contained in:
Simon Marchi
2020-08-04 14:47:39 -04:00
parent 8a6d5e35fe
commit 66d6346b25
3 changed files with 7 additions and 6 deletions

View File

@ -4134,7 +4134,7 @@ type_not_allocated (const struct type *type)
struct dynamic_prop *prop = TYPE_ALLOCATED_PROP (type);
return (prop != nullptr && prop->kind () == PROP_CONST
&& !TYPE_DYN_PROP_ADDR (prop));
&& prop->const_val () != 0);
}
/* Associated status of type TYPE. Return zero if type TYPE is associated.
@ -4146,7 +4146,7 @@ type_not_associated (const struct type *type)
struct dynamic_prop *prop = TYPE_ASSOCIATED_PROP (type);
return (prop != nullptr && prop->kind () == PROP_CONST
&& !TYPE_DYN_PROP_ADDR (prop));
&& prop->const_val () != 0);
}
/* rank_one_type helper for when PARM's type code is TYPE_CODE_PTR. */