mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
InstrProf: Make coverage::Counter comparable
I'll be using this in a clang change very soon. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218736 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3adf585efe
commit
d49903cc48
@ -63,6 +63,10 @@ public:
|
||||
return Kind == Other.Kind && ID == Other.ID;
|
||||
}
|
||||
|
||||
friend bool operator<(const Counter &LHS, const Counter &RHS) {
|
||||
return std::tie(LHS.Kind, LHS.ID) < std::tie(RHS.Kind, RHS.ID);
|
||||
}
|
||||
|
||||
/// \brief Return the counter that represents the number zero.
|
||||
static Counter getZero() { return Counter(); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user