diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-27 19:04:32 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-27 19:04:32 +0000 |
commit | aecae629269fae3bf484baf1d109e9a89d14eead (patch) | |
tree | 3a0af3603b7277b0d54e10ff7368f7f93c996ce8 /lib/AST/DeclObjC.cpp | |
parent | 6779647c8922c60184873bacdc6743eba6b4942c (diff) |
Make ObjCImplDecl inherit from ObjCContainerDecl.
ObjCContainerDecl now is the root class for objc decls that contain methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77235 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclObjC.cpp')
-rw-r--r-- | lib/AST/DeclObjC.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp index d9005f8f3c..e082a41551 100644 --- a/lib/AST/DeclObjC.cpp +++ b/lib/AST/DeclObjC.cpp @@ -587,28 +587,6 @@ FindPropertyImplDecl(IdentifierInfo *Id) const { return 0; } -// getMethod - This method returns an instance/class method by looking in -// the class implementation. Unlike interfaces, we don't look outside the -// implementation. -ObjCMethodDecl *ObjCImplDecl::getMethod(Selector Sel, bool isInstance) const { - // Since instance & class methods can have the same name, the loop below - // ensures we get the correct method. - // - // @interface Whatever - // - (int) class_method; - // + (float) class_method; - // @end - // - lookup_const_iterator Meth, MethEnd; - for (llvm::tie(Meth, MethEnd) = lookup(Sel); - Meth != MethEnd; ++Meth) { - ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(*Meth); - if (MD && MD->isInstanceMethod() == isInstance) - return MD; - } - return 0; -} - //===----------------------------------------------------------------------===// // ObjCImplementationDecl //===----------------------------------------------------------------------===// |