]> granicus.if.org Git - clang/commitdiff
Constify FunctionDecl::getmemoryFunctionKind().
authorAnna Zaks <ganna@apple.com>
Wed, 18 Jan 2012 02:45:01 +0000 (02:45 +0000)
committerAnna Zaks <ganna@apple.com>
Wed, 18 Jan 2012 02:45:01 +0000 (02:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148369 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 01177fa2773eea8d957e40f4686b5b366cceed77..022fcfa1b0ff2e0feb67c84cc842c1104ca6d6ab 100644 (file)
@@ -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()); }
index 195136313bbb7839dca0eba337cb46d67c04f0d7..001620a611bf711d8132872064a09e9643fd23e0 100644 (file)
@@ -2290,7 +2290,7 @@ SourceRange FunctionDecl::getSourceRange() const {
   return SourceRange(getOuterLocStart(), EndRangeLoc);
 }
 
-unsigned FunctionDecl::getMemoryFunctionKind() {
+unsigned FunctionDecl::getMemoryFunctionKind() const {
   IdentifierInfo *FnInfo = getIdentifier();
 
   if (!FnInfo)