From 1216f54276aae7fc2bd4056c198c8d2dd6b2ec5a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 23 Aug 2009 00:47:04 +0000 Subject: remove dead PrefixPrinter class. llvm-svn: 79796 --- llvm/lib/CodeGen/MachineBasicBlock.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp') diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index 777aa85c4c9..7ec9aab8c2c 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -173,14 +173,12 @@ static inline void OutputReg(raw_ostream &os, unsigned RegNo, os << " %reg" << RegNo; } -void MachineBasicBlock::print(std::ostream &OS, - const PrefixPrinter &prefix) const { +void MachineBasicBlock::print(std::ostream &OS) const { raw_os_ostream RawOS(OS); - print(RawOS, prefix); + print(RawOS); } -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 +211,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()); } -- cgit v1.2.3