From 38a5c9650e6ba4011800572e80f2b1300ff5047a Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Thu, 2 Apr 2009 18:44:20 +0000 Subject: Fix up lookup rules for properties declared in objc's continuation class. llvm-svn: 68339 --- clang/lib/CodeGen/CGObjCMac.cpp | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to 'clang/lib/CodeGen/CGObjCMac.cpp') diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp index 580641643f7..fa567a0a73a 100644 --- a/clang/lib/CodeGen/CGObjCMac.cpp +++ b/clang/lib/CodeGen/CGObjCMac.cpp @@ -1674,18 +1674,6 @@ static int countInheritedIvars(const ObjCInterfaceDecl *OI) { if ((*I)->getPropertyIvarDecl()) ++count; } - // look into continuation class. - for (ObjCCategoryDecl *Categories = OI->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)->getPropertyIvarDecl()) - ++count; - } - break; - } - } return count; } @@ -1714,20 +1702,6 @@ static const ObjCInterfaceDecl *getInterfaceDeclForIvar( if (IV->getIdentifier() == IVD->getIdentifier()) return OI; } - // look into continuation class. - for (ObjCCategoryDecl *Categories = OI->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() == IVD->getIdentifier()) - return OI; - } - break; - } - } return getInterfaceDeclForIvar(OI->getSuperClass(), IVD); } @@ -4592,17 +4566,6 @@ llvm::Constant *CGObjCNonFragileABIMac::EmitIvarList( E = OID->prop_end(); I != E; ++I) if (ObjCIvarDecl *IV = (*I)->getPropertyIvarDecl()) OIvars.push_back(IV); - // look into continuation class. - 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 (ObjCIvarDecl *IV = (*I)->getPropertyIvarDecl()) - OIvars.push_back(IV); - } - break; - } unsigned iv = 0; for (RecordDecl::field_iterator e = RD->field_end(); i != e; ++i) { -- cgit v1.2.3