X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FCodeGen%2FMachineBasicBlock.cpp;h=b3eb2da762812c4911b6f98a3378fe362385978a;hb=f612ff6cfbf3a59842732f0280807c0714ab9025;hp=7ec9aab8c2cc39c7c2e476de32d9a11e2f1dfe97;hpb=2d8e3d20be377112999670f210200b3658762571;p=oota-llvm.git diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp index 7ec9aab8c2c..b3eb2da7628 100644 --- a/lib/CodeGen/MachineBasicBlock.cpp +++ b/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) {