From: Bill Wendling Date: Fri, 6 Feb 2009 23:17:54 +0000 (+0000) Subject: Constify operators. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2325c7b1c519283053bfaff00098eaa27ad4159b;p=oota-llvm.git Constify operators. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63979 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/DebugLoc.h b/include/llvm/CodeGen/DebugLoc.h index d77ee847b6c..aa6d8252cfb 100644 --- a/include/llvm/CodeGen/DebugLoc.h +++ b/include/llvm/CodeGen/DebugLoc.h @@ -49,8 +49,8 @@ namespace llvm { /// 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.