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]

Re: How can i get a ref from a this pointer ?


On Tue, Nov 09, 2004 at 06:41:40PM -0800, James E Wilson wrote:
> If you already have address arithmetic, then there is no easy way to get 
> the COMPONENT_REF back.  You probably have to do this manually.  Look up 
> the type info, and then look at the fields of the type to find out which 
> one is at the index.

Indeed, there's a bit in one tree pass that attempts to do exactly 
this, since we can get better alias info when doing so.  This was
originally a hack to work around front end deficiencies.


r~


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