mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 04:24:00 +00:00
Re-apply LiveInterval index dumping patch, with fixes suggested by Bill
and others. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78003 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -153,12 +153,14 @@ static inline void OutputReg(raw_ostream &os, unsigned RegNo,
|
||||
os << " %reg" << RegNo;
|
||||
}
|
||||
|
||||
void MachineBasicBlock::print(std::ostream &OS) const {
|
||||
void MachineBasicBlock::print(std::ostream &OS,
|
||||
const PrefixPrinter &prefix) const {
|
||||
raw_os_ostream RawOS(OS);
|
||||
print(RawOS);
|
||||
print(RawOS, prefix);
|
||||
}
|
||||
|
||||
void MachineBasicBlock::print(raw_ostream &OS) const {
|
||||
void MachineBasicBlock::print(raw_ostream &OS,
|
||||
const PrefixPrinter &prefix) const {
|
||||
const MachineFunction *MF = getParent();
|
||||
if(!MF) {
|
||||
OS << "Can't print out MachineBasicBlock because parent MachineFunction"
|
||||
@ -191,7 +193,7 @@ void MachineBasicBlock::print(raw_ostream &OS) const {
|
||||
}
|
||||
|
||||
for (const_iterator I = begin(); I != end(); ++I) {
|
||||
OS << "\t";
|
||||
prefix(OS, *I) << "\t";
|
||||
I->print(OS, &getParent()->getTarget());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user