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 | b35b4a9b422c604fd9efb54ccdea33fd29a2b5c1 (patch) | |
tree | b76875f1e429e36888784add07190f788f43bf65 /clang/lib/AST/DeclObjC.cpp | |
parent | 7b753d21b54d042cae9ee97b4d75c18babfbfd76 (diff) | |
download | bcm5719-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/DeclObjC.cpp')
-rw-r--r-- | clang/lib/AST/DeclObjC.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp index 4d2fcb69ac7..855764fdbd3 100644 --- a/clang/lib/AST/DeclObjC.cpp +++ b/clang/lib/AST/DeclObjC.cpp @@ -137,6 +137,16 @@ ObjCIvarDecl *ObjCInterfaceDecl::lookupInstanceVariable( return *I; } } + // look into properties. + for (ObjCInterfaceDecl::prop_iterator I = ClassDecl->prop_begin(), + E = ClassDecl->prop_end(); I != E; ++I) { + ObjCPropertyDecl *PDecl = (*I); + if (ObjCIvarDecl *IV = PDecl->getPropertyIvarDecl()) + if (IV->getIdentifier() == ID) { + clsDeclared = ClassDecl; + return IV; + } + } ClassDecl = ClassDecl->getSuperClass(); } return NULL; |