This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Question on accessing and using binfos


> Hello,
> 
> I'm wondering if I can get information from here on how to use the
> binfo macros.
> 
What are the binfo access functions for gcc 3.4.1? I'm having trouble
creating the html files for gcc and I've been told BINFO_BASE_BINFO and
BINFO_BASE_ITERATE, which I found on the onlinedocs, are only for the
latest gcc which I don't have yet. 

> How should these macros be used? If class A is mother class to B with
> the assosciated trees being Atree and Btree repectively, does
> TYPE_BINFO(Btree) give Atree?
> Or should BINFO_BASE_BINFO(TYPE_BINFO(Btree)) give Atree?
> And what does BINFO_TYPE actually do? (sorry but I don't really
> understand the instructions on the webpage...)
> 
> I would also like information on accessing trees from their types.
> A library acting as backend to GCC gives me access to a class C's
> tree, let's say Ctree.
> I would like to know if C is derived from D. normally I should do,
> same_type-p(Ctree, Dtree) {I guess...}
> but I don't have or don't know how to get the Dtree. I just know that
> the name of the class is D.
> Is there a macro for retrieving the tree representing a class from its
> name or any known way of doing such a thing?
> 
> Thanks for any answers.
> 
> Primrose


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]