Removed setRecordForDecl. Added a FIXME.

llvm-svn: 61038
This commit is contained in:
Fariborz Jahanian 2008-12-15 18:04:20 +00:00
parent a24cd4f35a
commit cd489a822c
2 changed files with 3 additions and 1 deletions

View File

@ -396,7 +396,7 @@ void ObjCInterfaceDecl::addLayoutToClass(ASTContext &Context)
RD->addDecl(Context, Field);
}
RD->completeDefinition(Context);
setRecordForDecl(RD);
RecordForDecl = RD;
}
/// ObjCAddInstanceVariablesToClassImpl - Checks for correctness of Instance

View File

@ -2574,6 +2574,8 @@ Sema::DeclTy *Sema::ActOnTag(Scope *S, unsigned TagType, TagKind TK,
/// 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) {