diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-03-31 00:06:29 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-03-31 00:06:29 +0000 |
commit | af3e72285238369c2ea4ebd40a1c9a87bd3eabb7 (patch) | |
tree | d7a00fc22bf624e4f281eaa55a86c39a3b500365 /lib/AST/ASTContext.cpp | |
parent | 0e3e3eb3879d5a7aaca4a393706149ddef8544f1 (diff) |
fe support for objc2's nonfragile-abi synthesized ivars.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68077 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index bb17954727..b62438cd61 100644 --- a/lib/AST/ASTContext.cpp +++ b/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 |