summaryrefslogtreecommitdiff
path: root/lib/IR
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
commit0eacd386665fb66bfaadf566fe2e60e083fef6b8 (patch)
tree4dbd578e9c24d902e36d5a23d5e83b05166c0346 /lib/IR
parentf5999d6cb3ca60c74b55501bf75f9e6ecf6bfa29 (diff)
downloadllvm-0eacd386665fb66bfaadf566fe2e60e083fef6b8.tar.gz
llvm-0eacd386665fb66bfaadf566fe2e60e083fef6b8.tar.bz2
llvm-0eacd386665fb66bfaadf566fe2e60e083fef6b8.tar.xz
Add missing const specifier to a const method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210265 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR')
-rw-r--r--lib/IR/DebugLoc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/DebugLoc.cpp b/lib/IR/DebugLoc.cpp
index 43360d3866..e8bdccebae 100644
--- a/lib/IR/DebugLoc.cpp
+++ b/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()) {