Strip trailing whitespace.
[oota-llvm.git] / lib / CodeGen / MachineBasicBlock.cpp
index 777aa85c4c9bc5cdc608549cbe5cb26d8349ff17..b3eb2da762812c4911b6f98a3378fe362385978a 100644 (file)
@@ -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,14 +169,7 @@ static inline void OutputReg(raw_ostream &os, unsigned RegNo,
     os << " %reg" << RegNo;
 }
 
-void MachineBasicBlock::print(std::ostream &OS,
-                              const PrefixPrinter &prefix) const {
-  raw_os_ostream RawOS(OS);
-  print(RawOS, prefix);
-}
-
-void MachineBasicBlock::print(raw_ostream &OS,
-                              const PrefixPrinter &prefix) const {
+void MachineBasicBlock::print(raw_ostream &OS) const {
   const MachineFunction *MF = getParent();
   if (!MF) {
     OS << "Can't print out MachineBasicBlock because parent MachineFunction"
@@ -213,7 +202,7 @@ void MachineBasicBlock::print(raw_ostream &OS,
   }
   
   for (const_iterator I = begin(); I != end(); ++I) {
-    prefix(OS, *I) << '\t';
+    OS << '\t';
     I->print(OS, &getParent()->getTarget());
   }