Move operator<<(std::ostream&, const LiveInterval&) out of the header file.
llvm-svn: 10290
diff --git a/llvm/lib/CodeGen/LiveIntervals.cpp b/llvm/lib/CodeGen/LiveIntervals.cpp
index ec15c08..c9f7b34 100644
--- a/llvm/lib/CodeGen/LiveIntervals.cpp
+++ b/llvm/lib/CodeGen/LiveIntervals.cpp
@@ -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;
+}