[cfe-commits] r148369 - in /cfe/trunk: include/clang/AST/Decl.h lib/AST/Decl.cpp

Anna Zaks ganna at apple.com
Tue Jan 17 18:45:01 PST 2012


Author: zaks
Date: Tue Jan 17 20:45:01 2012
New Revision: 148369

URL: http://llvm.org/viewvc/llvm-project?rev=148369&view=rev
Log:
Constify FunctionDecl::getmemoryFunctionKind().

Modified:
    cfe/trunk/include/clang/AST/Decl.h
    cfe/trunk/lib/AST/Decl.cpp

Modified: cfe/trunk/include/clang/AST/Decl.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Decl.h?rev=148369&r1=148368&r2=148369&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Decl.h (original)
+++ cfe/trunk/include/clang/AST/Decl.h Tue Jan 17 20:45:01 2012
@@ -1990,7 +1990,7 @@
   /// 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()); }

Modified: cfe/trunk/lib/AST/Decl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Decl.cpp?rev=148369&r1=148368&r2=148369&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Decl.cpp (original)
+++ cfe/trunk/lib/AST/Decl.cpp Tue Jan 17 20:45:01 2012
@@ -2290,7 +2290,7 @@
   return SourceRange(getOuterLocStart(), EndRangeLoc);
 }
 
-unsigned FunctionDecl::getMemoryFunctionKind() {
+unsigned FunctionDecl::getMemoryFunctionKind() const {
   IdentifierInfo *FnInfo = getIdentifier();
 
   if (!FnInfo)





More information about the cfe-commits mailing list