[cfe-commits] r62031 - /cfe/trunk/lib/CodeGen/CGObjC.cpp

Steve Naroff snaroff at apple.com
Sat Jan 10 14:55:28 PST 2009


Author: snaroff
Date: Sat Jan 10 16:55:25 2009
New Revision: 62031

URL: http://llvm.org/viewvc/llvm-project?rev=62031&view=rev
Log:
Fix a misleading comment.

Modified:
    cfe/trunk/lib/CodeGen/CGObjC.cpp

Modified: cfe/trunk/lib/CodeGen/CGObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjC.cpp?rev=62031&r1=62030&r2=62031&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjC.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjC.cpp Sat Jan 10 16:55:25 2009
@@ -136,8 +136,8 @@
 // having a GenerateFunction which takes the body Stmt.
 
 /// GenerateObjCGetter - Generate an Objective-C property getter
-/// function. The given Decl must be either an ObjCCategoryImplDecl
-/// or an ObjCImplementationDecl.
+/// function. The given Decl must be an ObjCImplementationDecl. @synthesize
+/// is illegal within a category.
 void CodeGenFunction::GenerateObjCGetter(ObjCImplementationDecl *IMP,
                                          const ObjCPropertyImplDecl *PID) {
   ObjCIvarDecl *Ivar = PID->getPropertyIvarDecl();
@@ -206,8 +206,8 @@
 }
 
 /// GenerateObjCSetter - Generate an Objective-C property setter
-/// function. The given Decl must be either an ObjCCategoryImplDecl
-/// or an ObjCImplementationDecl.
+/// function. The given Decl must be an ObjCImplementationDecl. @synthesize
+/// is illegal within a category.
 void CodeGenFunction::GenerateObjCSetter(ObjCImplementationDecl *IMP,
                                          const ObjCPropertyImplDecl *PID) {
   ObjCIvarDecl *Ivar = PID->getPropertyIvarDecl();





More information about the cfe-commits mailing list