summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclObjC.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-04-24 02:57:34 +0000
committerDouglas Gregor <dgregor@apple.com>2009-04-24 02:57:34 +0000
commit38feed810f661c60662d691db17bf256ca1cc5d6 (patch)
tree5ddffb146f44af2ee8768ff33da1246855f403b4 /clang/lib/Sema/SemaDeclObjC.cpp
parent474251577163d262d4907466f8c3688b1aeea5c6 (diff)
downloadbcm5719-llvm-38feed810f661c60662d691db17bf256ca1cc5d6.tar.gz
bcm5719-llvm-38feed810f661c60662d691db17bf256ca1cc5d6.zip
Eliminate Sema::ObjCAliasDecls. This is based on Steve's fix, but also
updates name lookup so that we see through @compatibility_alias declarations to their underlying interfaces. llvm-svn: 69950
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclObjC.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp
index c30a7b26e14..f4014d1f25d 100644
--- a/clang/lib/Sema/SemaDeclObjC.cpp
+++ b/clang/lib/Sema/SemaDeclObjC.cpp
@@ -201,12 +201,8 @@ Sema::DeclPtrTy Sema::ActOnCompatiblityAlias(SourceLocation AtLoc,
ObjCCompatibleAliasDecl *AliasDecl =
ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl);
- ObjCAliasDecls[AliasName] = AliasDecl;
-
- // FIXME: PushOnScopeChains?
- CurContext->addDecl(Context, AliasDecl);
if (!CheckObjCDeclScope(AliasDecl))
- TUScope->AddDecl(DeclPtrTy::make(AliasDecl));
+ PushOnScopeChains(AliasDecl, TUScope);
return DeclPtrTy::make(AliasDecl);
}
OpenPOWER on IntegriCloud