[cfe-dev] Source information for types

Sebastian Redl sebastian.redl at getdesigned.at
Fri Jul 10 00:44:56 PDT 2009

On Thu, 9 Jul 2009 12:53:00 -0700, Chris Lattner <clattner at apple.com>
> 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?

They aren't. I was just confused. I think your way would work great.


More information about the cfe-dev mailing list