mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
remove std::ostream versions of printing stuff for MBB and MF,
upgrading a few things to use raw_ostream git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79811 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user