* tree.h (BINFO_N_BASETYPES): New macro.

From-SVN: r31162
This commit is contained in:
Mark Mitchell 2000-01-02 03:24:44 +00:00 committed by Mark Mitchell
parent 0533d788e5
commit 5e1677bcb0
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2000-01-01 Mark Mitchell <mark@codesourcery.com>
* tree.h (BINFO_N_BASETYPES): New macro.
2000-01-01 Bernd Schmidt <bernds@cygnus.co.uk>
* expmed.c (emit_store_flag): Prevent losing a pending stack

View File

@ -1018,6 +1018,10 @@ struct tree_type
#define BINFO_BASETYPES(NODE) TREE_VEC_ELT ((NODE), 4)
#define TYPE_BINFO_BASETYPES(NODE) TREE_VEC_ELT (TYPE_BINFO (NODE), 4)
/* The number of basetypes for NODE. */
#define BINFO_N_BASETYPES(NODE) \
(BINFO_BASETYPES (NODE) ? TREE_VEC_LENGTH (BINFO_BASETYPES (NODE)) : 0)
/* 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)))