mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-07 11:59:09 +00:00
Add comparison operators to DebugLoc.
llvm-svn: 63966
This commit is contained in:
parent
c264b63de6
commit
06176b1596
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user