[cfe-commits] r61038 - in /cfe/trunk/lib: AST/DeclObjC.cpp Sema/SemaDecl.cpp
Fariborz Jahanian
fjahanian at apple.com
Mon Dec 15 10:04:21 PST 2008
Author: fjahanian
Date: Mon Dec 15 12:04:20 2008
New Revision: 61038
URL: http://llvm.org/viewvc/llvm-project?rev=61038&view=rev
Log:
Removed setRecordForDecl. Added a FIXME.
Modified:
cfe/trunk/lib/AST/DeclObjC.cpp
cfe/trunk/lib/Sema/SemaDecl.cpp
Modified: cfe/trunk/lib/AST/DeclObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclObjC.cpp?rev=61038&r1=61037&r2=61038&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclObjC.cpp (original)
+++ cfe/trunk/lib/AST/DeclObjC.cpp Mon Dec 15 12:04:20 2008
@@ -396,7 +396,7 @@
RD->addDecl(Context, Field);
}
RD->completeDefinition(Context);
- setRecordForDecl(RD);
+ RecordForDecl = RD;
}
/// ObjCAddInstanceVariablesToClassImpl - Checks for correctness of Instance
Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=61038&r1=61037&r2=61038&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Mon Dec 15 12:04:20 2008
@@ -2574,6 +2574,8 @@
/// Collect the instance variables declared in an Objective-C object. Used in
/// the creation of structures from objects using the @defs directive.
+/// FIXME: This should be consolidated with CollectObjCIvars as it is also
+/// part of the AST generation logic of @defs.
static void CollectIvars(ObjCInterfaceDecl *Class, RecordDecl *Record,
ASTContext& Ctx,
llvm::SmallVectorImpl<Sema::DeclTy*> &ivars) {
More information about the cfe-commits
mailing list