summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-03-31 00:06:29 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-03-31 00:06:29 +0000
commitb35b4a9b422c604fd9efb54ccdea33fd29a2b5c1 (patch)
treeb76875f1e429e36888784add07190f788f43bf65 /clang/lib/AST/ASTContext.cpp
parent7b753d21b54d042cae9ee97b4d75c18babfbfd76 (diff)
downloadbcm5719-llvm-b35b4a9b422c604fd9efb54ccdea33fd29a2b5c1.tar.gz
bcm5719-llvm-b35b4a9b422c604fd9efb54ccdea33fd29a2b5c1.zip
fe support for objc2's nonfragile-abi synthesized ivars.
llvm-svn: 68077
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index bb179547278..b62438cd61a 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -608,6 +608,13 @@ void ASTContext::CollectObjCIvars(const ObjCInterfaceDecl *OI,
if (!IVDecl->isInvalidDecl())
Fields.push_back(cast<FieldDecl>(IVDecl));
}
+ // look into properties.
+ for (ObjCInterfaceDecl::prop_iterator I = OI->prop_begin(),
+ E = OI->prop_end(); I != E; ++I) {
+ ObjCPropertyDecl *PDecl = (*I);
+ if (ObjCIvarDecl *IV = PDecl->getPropertyIvarDecl())
+ Fields.push_back(cast<FieldDecl>(IV));
+ }
}
/// addRecordToClass - produces record info. for the class for its
OpenPOWER on IntegriCloud