aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-02-06 23:17:54 +0000
committerBill Wendling <isanbard@gmail.com>2009-02-06 23:17:54 +0000
commitd3bd6a706a5f72cb9910d347ed08bb49b4b7bb10 (patch)
tree54fdda8d740a623ebe78eb0f1f1aa57786cb499c /include
parent9bfc017ed383685dbc2f7db5b7f79763057effea (diff)
downloadexternal_llvm-d3bd6a706a5f72cb9910d347ed08bb49b4b7bb10.zip
external_llvm-d3bd6a706a5f72cb9910d347ed08bb49b4b7bb10.tar.gz
external_llvm-d3bd6a706a5f72cb9910d347ed08bb49b4b7bb10.tar.bz2
Constify operators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63979 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/DebugLoc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/DebugLoc.h b/include/llvm/CodeGen/DebugLoc.h
index d77ee84..aa6d825 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.