[cfe-commits] r60993 - in /cfe/trunk: include/clang/AST/DeclObjC.h lib/AST/DeclObjC.cpp lib/Sema/SemaDecl.cpp lib/Sema/SemaDeclObjC.cpp

steve naroff snaroff at apple.com
Wed Dec 17 06:34:44 PST 2008

On Dec 15, 2008, at 1:02 PM, Douglas Gregor wrote:
>>> Will we need to have the RecordDecl layout for most or all
>>> Objective-C interfaces? If most programs only need the layout for a
>>> small number of interfaces, it might be beneficial to compute the
>>> layouts lazily (as we do with the layout of RecordDecls).
>> Lay out is needed when a field is referenced. I will look at this
>> later when I am done with code gen.
> Okay!

Just to build on this issue...why does ObjCInterfaceDecl need a  
'RecordForDecl' slot at all?

 From my perspective, this should be computed lazily (as you suggest)  
and stored separately (using a map that is populated during code  


> 	- Doug
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

More information about the cfe-commits mailing list