Add comparison operators to DebugLoc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63966 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2009-02-06 21:34:12 +00:00
parent 21afcda544
commit 4936548c06

View File

@ -48,6 +48,9 @@ namespace llvm {
/// isUnknown - Return true if there is no debug info for the SDNode /
/// MachineInstr.
bool isUnknown() const { return Idx == 0; }
bool operator==(const DebugLoc &DL) { return Idx == DL.Idx; }
bool operator!=(const DebugLoc &DL) { return !(*this == DL); }
};
// Partially specialize DenseMapInfo for DebugLocTyple.