[cfe-dev] Objective-C tidy up

Ted Kremenek kremenek at apple.com
Tue Jun 3 08:32:18 PDT 2008


On Jun 3, 2008, at 4:39 AM, David Chisnall wrote:

>> Why should self and _cmd be ParmVarDecls?  Shouldn't they be
>> PredefinedExprs?
>
> That's what I did to start with, but PredefinedExprs need special
> handling in codegen, while ParmVarDecls are automatically turned into
> loads of %var.addr.  Since they are parameters, and since it
> simplifies the rest of the implementation, it seemed like a
> ParmVarDecl would be the right thing to choose.

The codegen is not the only consumer of the ASTs.  We should go with  
the solution that makes more sense in the general case.



More information about the cfe-dev mailing list