diff options
| author | Anna Zaks <ganna@apple.com> | 2012-07-30 20:31:21 +0000 |
|---|---|---|
| committer | Anna Zaks <ganna@apple.com> | 2012-07-30 20:31:21 +0000 |
| commit | 7044adcaa4aa5b165ac56e70b5fafff6694184ff (patch) | |
| tree | a926f5afd23c6b3cf1a5d5d3bf99735b9d684c1d | |
| parent | e49190984c060d288d862a3c340a7fb656fdc5f7 (diff) | |
| download | bcm5719-llvm-7044adcaa4aa5b165ac56e70b5fafff6694184ff.tar.gz bcm5719-llvm-7044adcaa4aa5b165ac56e70b5fafff6694184ff.zip | |
Mark ObjCInterfaceDecl::lookupPrivateMethod as const.
llvm-svn: 160989
| -rw-r--r-- | clang/include/clang/AST/DeclObjC.h | 3 | ||||
| -rw-r--r-- | clang/lib/AST/DeclObjC.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/clang/include/clang/AST/DeclObjC.h b/clang/include/clang/AST/DeclObjC.h index 4229fd3c0d3..42dd5a3a273 100644 --- a/clang/include/clang/AST/DeclObjC.h +++ b/clang/include/clang/AST/DeclObjC.h @@ -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); diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp index cbd15240b17..4d48ad8e4f5 100644 --- a/clang/lib/AST/DeclObjC.cpp +++ b/clang/lib/AST/DeclObjC.cpp @@ -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; |

