[llvm] r210265 - Add missing const specifier to a const method.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Thu Jun 5 07:32:16 PDT 2014


Author: eugenis
Date: Thu Jun  5 09:32:15 2014
New Revision: 210265

URL: http://llvm.org/viewvc/llvm-project?rev=210265&view=rev
Log:
Add missing const specifier to a const method.

Modified:
    llvm/trunk/include/llvm/IR/DebugLoc.h
    llvm/trunk/lib/IR/DebugLoc.cpp

Modified: llvm/trunk/include/llvm/IR/DebugLoc.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/DebugLoc.h?rev=210265&r1=210264&r2=210265&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/DebugLoc.h (original)
+++ llvm/trunk/include/llvm/IR/DebugLoc.h Thu Jun  5 09:32:15 2014
@@ -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.

Modified: llvm/trunk/lib/IR/DebugLoc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/DebugLoc.cpp?rev=210265&r1=210264&r2=210265&view=diff
==============================================================================
--- llvm/trunk/lib/IR/DebugLoc.cpp (original)
+++ llvm/trunk/lib/IR/DebugLoc.cpp Thu Jun  5 09:32:15 2014
@@ -76,7 +76,7 @@ MDNode *DebugLoc::getScopeNode(const LLV
   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()) {





More information about the llvm-commits mailing list