summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveInterval.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2006-11-28 02:08:17 +0000
committerBill Wendling <isanbard@gmail.com>2006-11-28 02:08:17 +0000
commit3f6f0fd028dcc071294c1217f3a03edc8375d6a2 (patch)
tree5afe080ba4d3415c26793e65ad72cce6e938092a /llvm/lib/CodeGen/LiveInterval.cpp
parentcd2f1a897f17647de98e27c49c24ebaac1e8168e (diff)
downloadbcm5719-llvm-3f6f0fd028dcc071294c1217f3a03edc8375d6a2.tar.gz
bcm5719-llvm-3f6f0fd028dcc071294c1217f3a03edc8375d6a2.zip
Changed to using llvm streams.
llvm-svn: 31954
Diffstat (limited to 'llvm/lib/CodeGen/LiveInterval.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveInterval.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp
index 8e3f888d00e..703e31bf384 100644
--- a/llvm/lib/CodeGen/LiveInterval.cpp
+++ b/llvm/lib/CodeGen/LiveInterval.cpp
@@ -18,8 +18,9 @@
//
//===----------------------------------------------------------------------===//
-#include "llvm/CodeGen/LiveInterval.h"
#include "llvm/ADT/STLExtras.h"
+#include "llvm/CodeGen/LiveInterval.h"
+#include "llvm/Support/Streams.h"
#include "llvm/Target/MRegisterInfo.h"
#include <algorithm>
#include <iostream>
@@ -466,16 +467,15 @@ void LiveInterval::MergeValueNumberInto(unsigned V1, unsigned V2) {
}
}
-
std::ostream& llvm::operator<<(std::ostream& os, const LiveRange &LR) {
return os << '[' << LR.start << ',' << LR.end << ':' << LR.ValId << ")";
}
void LiveRange::dump() const {
- std::cerr << *this << "\n";
+ llvm_cerr << *this << "\n";
}
-void LiveInterval::print(std::ostream &OS, const MRegisterInfo *MRI) const {
+void LiveInterval::print(llvm_ostream &OS, const MRegisterInfo *MRI) const {
if (MRI && MRegisterInfo::isPhysicalRegister(reg))
OS << MRI->getName(reg);
else
@@ -508,5 +508,5 @@ void LiveInterval::print(std::ostream &OS, const MRegisterInfo *MRI) const {
}
void LiveInterval::dump() const {
- std::cerr << *this << "\n";
+ llvm_cerr << *this << "\n";
}
OpenPOWER on IntegriCloud