aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/ASTContext.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/ASTContext.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/ASTContext.cpp')
-rw-r--r--lib/AST/ASTContext.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp
index 8da7b3aa1d..99de7cbf59 100644
--- a/lib/AST/ASTContext.cpp
+++ b/lib/AST/ASTContext.cpp
@@ -614,17 +614,6 @@ void ASTContext::CollectObjCIvars(const ObjCInterfaceDecl *OI,
if (ObjCIvarDecl *IV = (*I)->getPropertyIvarDecl())
Fields.push_back(cast<FieldDecl>(IV));
}
- // 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 (ObjCIvarDecl *IV = (*I)->getPropertyIvarDecl())
- Fields.push_back(cast<FieldDecl>(IV));
- }
- break;
- }
}
/// addRecordToClass - produces record info. for the class for its
@@ -722,17 +711,6 @@ ASTContext::getASTObjCInterfaceLayout(const ObjCInterfaceDecl *D) {
if (ObjCIvarDecl *Ivar = (*I)->getPropertyIvarDecl())
NewEntry->LayoutField(Ivar, i++, false, StructPacking, *this);
}
- // Also continuation class.
- for (ObjCCategoryDecl *Categories = D->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 *Ivar = (*I)->getPropertyIvarDecl())
- NewEntry->LayoutField(Ivar, i++, false, StructPacking, *this);
- }
- break;
- }
// Finally, round the size of the total struct up to the alignment of the
// struct itself.