[llvm-commits] CVS: llvm/include/llvm/CodeGen/LiveIntervals.h

Alkis Evlogimenos alkis at cs.uiuc.edu
Mon Feb 16 23:15:01 PST 2004


Changes in directory llvm/include/llvm/CodeGen:

LiveIntervals.h updated: 1.17 -> 1.18

---
Log message:

Add LiveIntervals::Interval::empty() member function.


---
Diffs of the changes:  (+4 -2)

Index: llvm/include/llvm/CodeGen/LiveIntervals.h
diff -u llvm/include/llvm/CodeGen/LiveIntervals.h:1.17 llvm/include/llvm/CodeGen/LiveIntervals.h:1.18
--- llvm/include/llvm/CodeGen/LiveIntervals.h:1.17	Sun Feb 15 04:24:12 2004
+++ llvm/include/llvm/CodeGen/LiveIntervals.h	Mon Feb 16 23:14:37 2004
@@ -42,13 +42,15 @@
 
             Interval(unsigned r);
 
+            bool empty() const { return ranges.empty(); }
+
             unsigned start() const {
-                assert(!ranges.empty() && "empty interval for register");
+                assert(!empty() && "empty interval for register");
                 return ranges.front().first;
             }
 
             unsigned end() const {
-                assert(!ranges.empty() && "empty interval for register");
+                assert(!empty() && "empty interval for register");
                 return ranges.back().second;
             }
 





More information about the llvm-commits mailing list