diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-04-24 00:16:12 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-04-24 00:16:12 +0000 |
commit | ac345a399078ee22075488092a4d6bfe6d9738b9 (patch) | |
tree | 76f494b48ca7d622bdab09a31e17a6625f3ac81e /clang/lib/Sema/SemaDeclObjC.cpp | |
parent | 79947a24e672f8b719edb2f4e7ff2474905e969c (diff) | |
download | bcm5719-llvm-ac345a399078ee22075488092a4d6bfe6d9738b9.tar.gz bcm5719-llvm-ac345a399078ee22075488092a4d6bfe6d9738b9.zip |
Eliminate Sema::ObjCInterfaceDecls
llvm-svn: 69942
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDeclObjC.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp index e0cbdce7e0d..029770d3a92 100644 --- a/clang/lib/Sema/SemaDeclObjC.cpp +++ b/clang/lib/Sema/SemaDeclObjC.cpp @@ -98,10 +98,7 @@ ActOnStartClassInterface(SourceLocation AtInterfaceLoc, if (AttrList) ProcessDeclAttributeList(IDecl, AttrList); - ObjCInterfaceDecls[ClassName] = IDecl; PushOnScopeChains(IDecl, TUScope); - // Remember that this needs to be removed when the scope is popped. - TUScope->AddDecl(DeclPtrTy::make(IDecl)); } if (SuperName) { @@ -658,11 +655,10 @@ Sema::DeclPtrTy Sema::ActOnStartClassImplementation( // we should copy them over. IDecl = ObjCInterfaceDecl::Create(Context, CurContext, AtClassImplLoc, ClassName, ClassLoc, false, true); - ObjCInterfaceDecls[ClassName] = IDecl; IDecl->setSuperClass(SDecl); IDecl->setLocEnd(ClassLoc); - - // FIXME: PushOnScopeChains? + + PushOnScopeChains(IDecl, TUScope); CurContext->addDecl(Context, IDecl); // Remember that this needs to be removed when the scope is popped. TUScope->AddDecl(DeclPtrTy::make(IDecl)); @@ -1042,11 +1038,7 @@ Sema::ActOnForwardClassDeclaration(SourceLocation AtClassLoc, if (!IDecl) { // Not already seen? Make a forward decl. IDecl = ObjCInterfaceDecl::Create(Context, CurContext, AtClassLoc, IdentList[i], SourceLocation(), true); - ObjCInterfaceDecls[IdentList[i]] = IDecl; - PushOnScopeChains(IDecl, TUScope); - // Remember that this needs to be removed when the scope is popped. - TUScope->AddDecl(DeclPtrTy::make(IDecl)); } Interfaces.push_back(IDecl); |