aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/DeclObjC.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-04-02 18:44:20 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-04-02 18:44:20 +0000
commitd09a456e466597fe1667ea5e757bfe53be2cba7d (patch)
treebc30344041135ca98754544a0a77a34cc3c543a2 /lib/AST/DeclObjC.cpp
parented91f9043a75f9cec2a062535980efde59a2a73b (diff)
Fix up lookup rules for properties declared in
objc's continuation class. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68339 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclObjC.cpp')
-rw-r--r--lib/AST/DeclObjC.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp
index f2e0b791fd..cd1b979dcb 100644
--- a/lib/AST/DeclObjC.cpp
+++ b/lib/AST/DeclObjC.cpp
@@ -91,16 +91,6 @@ ObjCContainerDecl::FindPropertyDeclaration(IdentifierInfo *PropertyId) const {
for (prop_iterator I = prop_begin(), E = prop_end(); I != E; ++I)
if ((*I)->getIdentifier() == PropertyId)
return *I;
- // Also look for property declared in its continuation class.
- if (const ObjCInterfaceDecl *OID = dyn_cast<ObjCInterfaceDecl>(this))
- for (ObjCCategoryDecl *Categories = OID->getCategoryList();
- Categories; Categories = Categories->getNextClassCategory())
- if (!Categories->getIdentifier()) {
- for (ObjCInterfaceDecl::prop_iterator I = Categories->prop_begin(),
- E = Categories->prop_end(); I != E; ++I)
- if ((*I)->getIdentifier() == PropertyId)
- return *I;
- }
const ObjCProtocolDecl *PID = dyn_cast<ObjCProtocolDecl>(this);
if (PID) {
@@ -157,22 +147,6 @@ ObjCIvarDecl *ObjCInterfaceDecl::lookupInstanceVariable(
return IV;
}
}
- // look into continuation class.
- for (ObjCCategoryDecl *Categories = ClassDecl->getCategoryList();
- Categories; Categories = Categories->getNextClassCategory())
- if (!Categories->getIdentifier()) {
- for (ObjCInterfaceDecl::prop_iterator I = Categories->prop_begin(),
- E = Categories->prop_end(); I != E; ++I) {
- ObjCPropertyDecl *PDecl = (*I);
- if (ObjCIvarDecl *IV = PDecl->getPropertyIvarDecl())
- if (IV->getIdentifier() == ID) {
- clsDeclared = ClassDecl;
- return IV;
- }
- }
- break;
- }
-
ClassDecl = ClassDecl->getSuperClass();
}
return NULL;