summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-01-18 02:45:01 +0000
committerAnna Zaks <ganna@apple.com>2012-01-18 02:45:01 +0000
commit28db7ceabd3ff35e90a70a6042db640e98ea8a37 (patch)
treeaf0bf8f9b8cfbf4e359e305c28c8fa9e7518e486 /clang
parent72cd229398c2ba402567c97725cc67d436060cc5 (diff)
downloadbcm5719-llvm-28db7ceabd3ff35e90a70a6042db640e98ea8a37.tar.gz
bcm5719-llvm-28db7ceabd3ff35e90a70a6042db640e98ea8a37.zip
Constify FunctionDecl::getmemoryFunctionKind().
llvm-svn: 148369
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/AST/Decl.h2
-rw-r--r--clang/lib/AST/Decl.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h
index 01177fa2773..022fcfa1b0f 100644
--- a/clang/include/clang/AST/Decl.h
+++ b/clang/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/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index 195136313bb..001620a611b 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/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)
OpenPOWER on IntegriCloud