From: Mike Stump Date: Tue, 8 Sep 1992 09:25:09 +0000 (+0000) Subject: Add BINFO_VPTR_FIELD definition. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2cc3ac7a34646b4637711fd84763b79c9185663c;p=gcc.git Add BINFO_VPTR_FIELD definition. From-SVN: r2077 --- diff --git a/gcc/tree.h b/gcc/tree.h index 1e510229575..06ef89764b2 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -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)))