diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-04-02 18:44:20 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-04-02 18:44:20 +0000 |
commit | 38a5c9650e6ba4011800572e80f2b1300ff5047a (patch) | |
tree | 3328721e39d3f8497da7ac729951d53358bfa278 /clang/lib/AST/DeclObjC.cpp | |
parent | d5ca2d016598ca8196dc5fb04b7812634fac22c2 (diff) | |
download | bcm5719-llvm-38a5c9650e6ba4011800572e80f2b1300ff5047a.tar.gz bcm5719-llvm-38a5c9650e6ba4011800572e80f2b1300ff5047a.zip |
Fix up lookup rules for properties declared in
objc's continuation class.
llvm-svn: 68339
Diffstat (limited to 'clang/lib/AST/DeclObjC.cpp')
-rw-r--r-- | clang/lib/AST/DeclObjC.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp index f2e0b791fdd..cd1b979dcb0 100644 --- a/clang/lib/AST/DeclObjC.cpp +++ b/clang/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; |