[llvm-commits] [llvm] r63979 - /llvm/trunk/include/llvm/CodeGen/DebugLoc.h

Bill Wendling isanbard at gmail.com
Fri Feb 6 15:17:54 PST 2009


Author: void
Date: Fri Feb  6 17:17:54 2009
New Revision: 63979

URL: http://llvm.org/viewvc/llvm-project?rev=63979&view=rev
Log:
Constify operators.

Modified:
    llvm/trunk/include/llvm/CodeGen/DebugLoc.h

Modified: llvm/trunk/include/llvm/CodeGen/DebugLoc.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/DebugLoc.h?rev=63979&r1=63978&r2=63979&view=diff

==============================================================================
--- llvm/trunk/include/llvm/CodeGen/DebugLoc.h (original)
+++ llvm/trunk/include/llvm/CodeGen/DebugLoc.h Fri Feb  6 17:17:54 2009
@@ -49,8 +49,8 @@
     /// MachineInstr.
     bool isUnknown() const { return Idx == 0; }
 
-    bool operator==(const DebugLoc &DL) { return Idx == DL.Idx; }
-    bool operator!=(const DebugLoc &DL) { return !(*this == DL); }
+    bool operator==(const DebugLoc &DL) const { return Idx == DL.Idx; }
+    bool operator!=(const DebugLoc &DL) const { return !(*this == DL); }
   };
 
   // Partially specialize DenseMapInfo for DebugLocTyple.





More information about the llvm-commits mailing list