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
+2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
+ dynamic_prop::const_val.
+
2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
* gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
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.
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. */
#define TYPE_ASSOCIATED_PROP(thistype) \
((thistype)->dyn_prop (DYN_PROP_ASSOCIATED))
-/* Attribute accessors for dynamic properties. */
-#define TYPE_DYN_PROP_ADDR(dynprop) \
- (dynprop->const_val ())
-
/* C++ */
#define TYPE_SELF_TYPE(thistype) internal_type_self_type (thistype)