[cfe-dev] Source information for types

Chris Lattner clattner at apple.com
Thu Jul 9 12:53:00 PDT 2009


On Jul 9, 2009, at 11:39 AM, Sebastian Redl wrote:

> Chris Lattner wrote:
>> I always thought we'd do this sort of thing by introducing several  
>> new
>> subclasses of type, but ones that are very specific to the various
>> types.
>> The canonical form of the array type would be the normal  
>> ConstantArray
>> without location info (so that canonical types are pointer unique as
>> usual).  This just provides loc info for ConstantArray, so we'd need
>> to have a per-class subclass for every type that has a token.  Does
>> this approach make sense?
>>
> That was my idea for it as well, until I discarded it because I  
> confused
> the Type and Decl hierarchies. (The decl hierarchy is deeper,  
> leading to
> more redundant work.)

How are decls involved?

-Chris



More information about the cfe-dev mailing list