remove dead PrefixPrinter class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79796 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2009-08-23 00:47:04 +00:00
parent 77942d4ee4
commit 2d8e3d20be
6 changed files with 20 additions and 111 deletions
+4 -6
View File
@@ -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());
}