diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2014-06-05 14:32:15 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2014-06-05 14:32:15 +0000 |
commit | bec9dedf78d42a5c6a8e869a59c9f56f259ec2ac (patch) | |
tree | 5117a8a95a33bb49c6198f1458e570fb8cde2170 /llvm | |
parent | 53e8cd3deabe915cc35e5d0f0b54aaa702bf16e2 (diff) | |
download | bcm5719-llvm-bec9dedf78d42a5c6a8e869a59c9f56f259ec2ac.tar.gz bcm5719-llvm-bec9dedf78d42a5c6a8e869a59c9f56f259ec2ac.zip |
Add missing const specifier to a const method.
llvm-svn: 210265
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/IR/DebugLoc.h | 2 | ||||
-rw-r--r-- | llvm/lib/IR/DebugLoc.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/IR/DebugLoc.h b/llvm/include/llvm/IR/DebugLoc.h index 6d769d4055c..3d969a8b753 100644 --- a/llvm/include/llvm/IR/DebugLoc.h +++ b/llvm/include/llvm/IR/DebugLoc.h @@ -95,7 +95,7 @@ namespace llvm { // getFnDebugLoc - Walk up the scope chain of given debug loc and find line // number info for the function. - DebugLoc getFnDebugLoc(const LLVMContext &Ctx); + DebugLoc getFnDebugLoc(const LLVMContext &Ctx) const; /// getAsMDNode - This method converts the compressed DebugLoc node into a /// DILocation compatible MDNode. 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()) { |