summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervals.cpp
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2003-12-05 10:38:28 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2003-12-05 10:38:28 +0000
commit2de099e54f8aa38f6ad96c8c2e924c8ce9b9dff7 (patch)
treec6b22458842a7e1f39e62933ccb42423dc351ca7 /llvm/lib/CodeGen/LiveIntervals.cpp
parented28ca93ef957ac96f9c5eaa581dcb790d85ca9e (diff)
downloadbcm5719-llvm-2de099e54f8aa38f6ad96c8c2e924c8ce9b9dff7.tar.gz
bcm5719-llvm-2de099e54f8aa38f6ad96c8c2e924c8ce9b9dff7.zip
Move operator<<(std::ostream&, const LiveInterval&) out of the header file.
llvm-svn: 10290
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervals.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervals.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervals.cpp b/llvm/lib/CodeGen/LiveIntervals.cpp
index ec15c0823e5..c9f7b34c0b7 100644
--- a/llvm/lib/CodeGen/LiveIntervals.cpp
+++ b/llvm/lib/CodeGen/LiveIntervals.cpp
@@ -301,3 +301,14 @@ void LiveIntervals::computeIntervals()
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;
+}
OpenPOWER on IntegriCloud