diff options
author | David Greene <greened@obbligato.org> | 2009-07-21 18:27:05 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2009-07-21 18:27:05 +0000 |
commit | 3b458645be949b8e65702c711bb590d1a92fd097 (patch) | |
tree | 78bb5a0b99f46ce62792d0dee94e9e76bca82eea /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 92ebf9dd6eca31e4c6b8b380fbdaa30736098d9e (diff) | |
download | bcm5719-llvm-3b458645be949b8e65702c711bb590d1a92fd097.tar.gz bcm5719-llvm-3b458645be949b8e65702c711bb590d1a92fd097.zip |
Add PrefixPrinter arguments to the dump routines for MachineFunction and
MachineBasicBlock. We'll use these shortly.
llvm-svn: 76603
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index 71e6b3e4d0f..82ff769c1d0 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -148,7 +148,8 @@ static inline void OutputReg(std::ostream &os, unsigned RegNo, os << " %reg" << RegNo; } -void MachineBasicBlock::print(std::ostream &OS) const { +void MachineBasicBlock::print(std::ostream &OS, + const PrefixPrinter &prefix) const { const MachineFunction *MF = getParent(); if(!MF) { OS << "Can't print out MachineBasicBlock because parent MachineFunction" @@ -181,6 +182,7 @@ void MachineBasicBlock::print(std::ostream &OS) const { } for (const_iterator I = begin(); I != end(); ++I) { + OS << prefix(*I); OS << "\t"; I->print(OS, &getParent()->getTarget()); } |