From: Fariborz Jahanian Date: Mon, 15 Dec 2008 18:04:20 +0000 (+0000) Subject: Removed setRecordForDecl. Added a FIXME. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9fbb609b90c1b41e147cf3e6afac40ff4b4137da;p=clang Removed setRecordForDecl. Added a FIXME. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61038 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp index f22b5b435b..27e6a6df65 100644 --- a/lib/AST/DeclObjC.cpp +++ b/lib/AST/DeclObjC.cpp @@ -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 diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 17a6617f37..fbf89ae311 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -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 &ivars) {