aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveInterval.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/LiveInterval.h')
-rw-r--r--lib/CodeGen/LiveInterval.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveInterval.h b/lib/CodeGen/LiveInterval.h
index 33bc036b66..d25f7e31a3 100644
--- a/lib/CodeGen/LiveInterval.h
+++ b/lib/CodeGen/LiveInterval.h
@@ -47,6 +47,11 @@ namespace llvm {
};
std::ostream& operator<<(std::ostream& os, const LiveRange &LR);
+ inline bool operator<(unsigned V, const LiveRange &LR) {
+ return V < LR.start;
+ }
+
+
/// LiveInterval - This class represents some number of live ranges for a
/// register or value. This class also contains a bit of register allocator
/// state.