diff options
author | Anna Zaks <ganna@apple.com> | 2012-01-18 02:45:01 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-01-18 02:45:01 +0000 |
commit | 9392d4e4da695e2e1a5befbb3a074793a7265471 (patch) | |
tree | d3b74bca55ffce44353794ddafbf93d3afc10440 | |
parent | 22afaccd9ab77d46106e94c47907d955a014ae3f (diff) |
Constify FunctionDecl::getmemoryFunctionKind().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148369 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/Decl.h | 2 | ||||
-rw-r--r-- | lib/AST/Decl.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index 01177fa277..022fcfa1b0 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -1990,7 +1990,7 @@ public: /// If the given function is a memory copy or setting function, returns /// the corresponding Builtin ID. If the function is not a memory function, /// returns 0. - unsigned getMemoryFunctionKind(); + unsigned getMemoryFunctionKind() const; // Implement isa/cast/dyncast/etc. static bool classof(const Decl *D) { return classofKind(D->getKind()); } diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index 195136313b..001620a611 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -2290,7 +2290,7 @@ SourceRange FunctionDecl::getSourceRange() const { return SourceRange(getOuterLocStart(), EndRangeLoc); } -unsigned FunctionDecl::getMemoryFunctionKind() { +unsigned FunctionDecl::getMemoryFunctionKind() const { IdentifierInfo *FnInfo = getIdentifier(); if (!FnInfo) |