]> granicus.if.org Git - clang/commitdiff
Mark ObjCInterfaceDecl::lookupPrivateMethod as const.
authorAnna Zaks <ganna@apple.com>
Mon, 30 Jul 2012 20:31:21 +0000 (20:31 +0000)
committerAnna Zaks <ganna@apple.com>
Mon, 30 Jul 2012 20:31:21 +0000 (20:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160989 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclObjC.h
lib/AST/DeclObjC.cpp

index 4229fd3c0d35bc8f5856a026520faa8150fd4d91..42dd5a3a273479f62caead4b7f67bcfbc2a2fc31 100644 (file)
@@ -940,7 +940,8 @@ public:
   ObjCInterfaceDecl *lookupInheritedClass(const IdentifierInfo *ICName);
 
   /// \brief Lookup a method in the classes implementation hierarchy.
-  ObjCMethodDecl *lookupPrivateMethod(const Selector &Sel, bool Instance=true);
+  ObjCMethodDecl *lookupPrivateMethod(const Selector &Sel,
+                                      bool Instance=true) const;
 
   ObjCMethodDecl *lookupPrivateClassMethod(const Selector &Sel) {
     return lookupPrivateMethod(Sel, false);
index cbd15240b17b9f300b5f349fd3461d90e2aba7b3..4d48ad8e4f5ac888de4e816738c22bd7a10c3bd4 100644 (file)
@@ -368,7 +368,7 @@ ObjCMethodDecl *ObjCInterfaceDecl::lookupMethod(Selector Sel,
 // Returns 0 if no method is found.
 ObjCMethodDecl *ObjCInterfaceDecl::lookupPrivateMethod(
                                    const Selector &Sel,
-                                   bool Instance) {
+                                   bool Instance) const {
   // FIXME: Should make sure no callers ever do this.
   if (!hasDefinition())
     return 0;