diff options
author | Bill Wendling <isanbard@gmail.com> | 2006-11-28 02:08:17 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2006-11-28 02:08:17 +0000 |
commit | d9fd2acc1f172e4b8c33c3562667102f9af4d28d (patch) | |
tree | e408c4fced25181960d779fe28b69be2859863ff /lib/CodeGen/LiveInterval.cpp | |
parent | eba4be809086c59d58050f6d2eceb0c029785dff (diff) |
Changed to using llvm streams.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31954 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveInterval.cpp')
-rw-r--r-- | lib/CodeGen/LiveInterval.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp index 8e3f888d00..703e31bf38 100644 --- a/lib/CodeGen/LiveInterval.cpp +++ b/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"; } |