Add BINFO_VPTR_FIELD definition.
authorMike Stump <mrs@gcc.gnu.org>
Tue, 8 Sep 1992 09:25:09 +0000 (09:25 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Tue, 8 Sep 1992 09:25:09 +0000 (09:25 +0000)
From-SVN: r2077

gcc/tree.h

index 1e51022957589cf6bb2f4532618b5c4571b966dc..06ef89764b2992c732e6aeba70a86682c5a1adf4 100644 (file)
@@ -654,6 +654,12 @@ struct tree_type
 #define BINFO_BASETYPES(NODE) TREE_VEC_ELT ((NODE), 4)
 #define TYPE_BINFO_BASETYPES(NODE) TREE_VEC_ELT (TYPE_BINFO (NODE), 4)
 
+/* 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)))