diff options
author | Steve Naroff <snaroff@apple.com> | 2009-10-01 23:46:04 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-10-01 23:46:04 +0000 |
commit | d789d3d985e28c9404e62157af46dcb7331920e0 (patch) | |
tree | 91ea9c6889bb5f4b5cd1018465ac9b56f3dd90bb /lib/AST/DeclObjC.cpp | |
parent | 1be8aee8745e8b814ad2f151aa214b0ef07833db (diff) |
- Remove Sema::FindMethodInNestedImplementations().
- Add ObjCInterfaceDecl::lookupPrivateInstanceMethod().
- Convert clients.
No functionality change - One less method in Sema:-)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83224 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclObjC.cpp')
-rw-r--r-- | lib/AST/DeclObjC.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp index d6e4b2c44b..4185ac1682 100644 --- a/lib/AST/DeclObjC.cpp +++ b/lib/AST/DeclObjC.cpp @@ -184,7 +184,16 @@ ObjCMethodDecl *ObjCInterfaceDecl::lookupMethod(Selector Sel, return NULL; } - +ObjCMethodDecl *ObjCInterfaceDecl::lookupPrivateInstanceMethod( + const Selector &Sel) { + ObjCMethodDecl *Method = 0; + if (ObjCImplementationDecl *ImpDecl = getImplementation()) + Method = ImpDecl->getInstanceMethod(Sel); + + if (!Method && getSuperClass()) + return getSuperClass()->lookupPrivateInstanceMethod(Sel); + return Method; +} //===----------------------------------------------------------------------===// // ObjCMethodDecl |