Skip to content

Commit

Permalink
Add missing const specifier to a const method.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210265 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
eugenis committed Jun 5, 2014
1 parent f5999d6 commit 0eacd38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/llvm/IR/DebugLoc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/IR/DebugLoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 0eacd38

Please sign in to comment.