From: Anna Zaks Date: Wed, 18 Jan 2012 02:45:01 +0000 (+0000) Subject: Constify FunctionDecl::getmemoryFunctionKind(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9392d4e4da695e2e1a5befbb3a074793a7265471;p=clang Constify FunctionDecl::getmemoryFunctionKind(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148369 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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)