summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/DebugLoc.cpp
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2014-06-05 14:32:15 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2014-06-05 14:32:15 +0000
commitbec9dedf78d42a5c6a8e869a59c9f56f259ec2ac (patch)
tree5117a8a95a33bb49c6198f1458e570fb8cde2170 /llvm/lib/IR/DebugLoc.cpp
parent53e8cd3deabe915cc35e5d0f0b54aaa702bf16e2 (diff)
downloadbcm5719-llvm-bec9dedf78d42a5c6a8e869a59c9f56f259ec2ac.tar.gz
bcm5719-llvm-bec9dedf78d42a5c6a8e869a59c9f56f259ec2ac.zip
Add missing const specifier to a const method.
llvm-svn: 210265
Diffstat (limited to 'llvm/lib/IR/DebugLoc.cpp')
-rw-r--r--llvm/lib/IR/DebugLoc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/DebugLoc.cpp b/llvm/lib/IR/DebugLoc.cpp
index 43360d38662..e8bdccebae9 100644
--- a/llvm/lib/IR/DebugLoc.cpp
+++ b/llvm/lib/IR/DebugLoc.cpp
@@ -76,7 +76,7 @@ MDNode *DebugLoc::getScopeNode(const LLVMContext &Ctx) const {
return getScope(Ctx);
}
-DebugLoc DebugLoc::getFnDebugLoc(const LLVMContext &Ctx) {
+DebugLoc DebugLoc::getFnDebugLoc(const LLVMContext &Ctx) const {
const MDNode *Scope = getScopeNode(Ctx);
DISubprogram SP = getDISubprogram(Scope);
if (SP.isSubprogram()) {
OpenPOWER on IntegriCloud