aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDeclObjC.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-04-24 00:16:12 +0000
committerDouglas Gregor <dgregor@apple.com>2009-04-24 00:16:12 +0000
commit8b9fb3082bc54cf7ffe6c3772500a73388f53072 (patch)
tree6788afdc75cf34b2540b83f95fd8fc4be41cdbf4 /lib/Sema/SemaDeclObjC.cpp
parent8fc463adf0116fdcbff86e9cca11955aad1649fe (diff)
Eliminate Sema::ObjCInterfaceDecls
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69942 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclObjC.cpp')
-rw-r--r--lib/Sema/SemaDeclObjC.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp
index e0cbdce7e0..029770d3a9 100644
--- a/lib/Sema/SemaDeclObjC.cpp
+++ b/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);