[llvm-commits] CVS: llvm/lib/CodeGen/LiveIntervals.cpp

Alkis Evlogimenos alkis at cs.uiuc.edu
Fri Dec 5 04:39:02 PST 2003


Changes in directory llvm/lib/CodeGen:

LiveIntervals.cpp updated: 1.3 -> 1.4

---
Log message:

Move operator<<(std::ostream&, const LiveInterval&) out of the header file.


---
Diffs of the changes:  (+11 -0)

Index: llvm/lib/CodeGen/LiveIntervals.cpp
diff -u llvm/lib/CodeGen/LiveIntervals.cpp:1.3 llvm/lib/CodeGen/LiveIntervals.cpp:1.4
--- llvm/lib/CodeGen/LiveIntervals.cpp:1.3	Fri Dec  5 04:32:01 2003
+++ llvm/lib/CodeGen/LiveIntervals.cpp	Fri Dec  5 04:38:27 2003
@@ -301,3 +301,14 @@
     DEBUG(std::copy(intervals_.begin(), intervals_.end(),
                     std::ostream_iterator<Interval>(std::cerr, "\n")));
 }
+
+std::ostream& llvm::operator<<(std::ostream& os,
+                               const LiveIntervals::Interval& li)
+{
+    os << "%reg" << li.reg << " = ";
+    for (LiveIntervals::Interval::Ranges::const_iterator
+             i = li.ranges.begin(), e = li.ranges.end(); i != e; ++i) {
+        os << "[" << i->first << "," << i->second << "]";
+    }
+    return os;
+}





More information about the llvm-commits mailing list