diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-23 03:13:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-23 03:13:20 +0000 |
commit | 565449d79ee69e57e3bf684f9bd9eabbe6e6da44 (patch) | |
tree | cd204561234740202df209aa6a5818117fb8d811 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 84cffc22d413e026cb3cb5b814578c6c55f4ff78 (diff) | |
download | bcm5719-llvm-565449d79ee69e57e3bf684f9bd9eabbe6e6da44.tar.gz bcm5719-llvm-565449d79ee69e57e3bf684f9bd9eabbe6e6da44.zip |
remove std::ostream versions of printing stuff for MBB and MF,
upgrading a few things to use raw_ostream
llvm-svn: 79811
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index 7ec9aab8c2c..b3eb2da7628 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -32,10 +32,6 @@ MachineBasicBlock::~MachineBasicBlock() { LeakDetector::removeGarbageObject(this); } -std::ostream &llvm::operator<<(std::ostream &OS, const MachineBasicBlock &MBB) { - MBB.print(OS); - return OS; -} raw_ostream &llvm::operator<<(raw_ostream &OS, const MachineBasicBlock &MBB) { MBB.print(OS); return OS; @@ -159,7 +155,7 @@ bool MachineBasicBlock::isOnlyReachableByFallthrough() const { } void MachineBasicBlock::dump() const { - print(*cerr.stream()); + print(errs()); } static inline void OutputReg(raw_ostream &os, unsigned RegNo, @@ -173,11 +169,6 @@ static inline void OutputReg(raw_ostream &os, unsigned RegNo, os << " %reg" << RegNo; } -void MachineBasicBlock::print(std::ostream &OS) const { - raw_os_ostream RawOS(OS); - print(RawOS); -} - void MachineBasicBlock::print(raw_ostream &OS) const { const MachineFunction *MF = getParent(); if (!MF) { |