Commit 5e1677bc by Mark Mitchell Committed by Mark Mitchell

* tree.h (BINFO_N_BASETYPES): New macro.

From-SVN: r31162
parent 0533d788
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
......
......@@ -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)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment