1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Add comparison operators to DebugLoc.

llvm-svn: 63966
This commit is contained in:
Bill Wendling 2009-02-06 21:34:12 +00:00
parent c264b63de6
commit 06176b1596

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.