diff options
author | Jason Merrill <jason@gcc.gnu.org> | 1998-04-13 07:38:16 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-04-13 07:38:16 -0400 |
commit | 7d02bbefd529d1a7274e474dd74314b1f49c8562 (patch) | |
tree | 9f2156c6e7cd5217aacd11e18929fa8e89b94fe2 /gcc/tree.h | |
parent | 556ffb6757a5bdcb8ad49656214c2e74a63d619b (diff) | |
download | gcc-7d02bbefd529d1a7274e474dd74314b1f49c8562.zip gcc-7d02bbefd529d1a7274e474dd74314b1f49c8562.tar.gz gcc-7d02bbefd529d1a7274e474dd74314b1f49c8562.tar.bz2 |
* tree.h (BINFO_OFFSET_ZEROP): Use integer_zerop.
From-SVN: r19199
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -847,7 +847,7 @@ struct tree_type #define BINFO_OFFSET(NODE) TREE_VEC_ELT ((NODE), 1) #define TYPE_BINFO_OFFSET(NODE) BINFO_OFFSET (TYPE_BINFO (NODE)) -#define BINFO_OFFSET_ZEROP(NODE) (BINFO_OFFSET (NODE) == integer_zero_node) +#define BINFO_OFFSET_ZEROP(NODE) (integer_zerop (BINFO_OFFSET (NODE))) /* The virtual function table belonging to this basetype. Virtual function tables provide a mechanism for run-time method dispatching. @@ -875,15 +875,18 @@ struct tree_type #define BINFO_BASETYPES(NODE) TREE_VEC_ELT ((NODE), 4) #define TYPE_BINFO_BASETYPES(NODE) TREE_VEC_ELT (TYPE_BINFO (NODE), 4) +/* Accessor macro to get to the Nth basetype of this basetype. */ +#define BINFO_BASETYPE(NODE,N) TREE_VEC_ELT (BINFO_BASETYPES (NODE), (N)) +#define TYPE_BINFO_BASETYPE(NODE,N) BINFO_TYPE (TREE_VEC_ELT (BINFO_BASETYPES (TYPE_BINFO (NODE)), (N))) + /* For a BINFO record describing an inheritance, this yields a pointer to the artificial FIELD_DECL node which contains the "virtual base class pointer" for the given inheritance. */ - #define BINFO_VPTR_FIELD(NODE) TREE_VEC_ELT ((NODE), 5) -/* Accessor macro to get to the Nth basetype of this basetype. */ -#define BINFO_BASETYPE(NODE,N) TREE_VEC_ELT (BINFO_BASETYPES (NODE), (N)) -#define TYPE_BINFO_BASETYPE(NODE,N) BINFO_TYPE (TREE_VEC_ELT (BINFO_BASETYPES (TYPE_BINFO (NODE)), (N))) +/* The size of a base class subobject of this type. */ +#define BINFO_SIZE(NODE) TREE_VEC_ELT ((NODE), 6) +#define TYPE_BINFO_SIZE(NODE) BINFO_SIZE (TYPE_BINFO (NODE)) /* Slot used to build a chain that represents a use of inheritance. For example, if X is derived from Y, and Y is derived from Z, |