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:
@ -218,7 +218,8 @@ void MachineFunction::dump() const {
|
||||
print(*cerr.stream());
|
||||
}
|
||||
|
||||
void MachineFunction::print(std::ostream &OS) const {
|
||||
void MachineFunction::print(std::ostream &OS,
|
||||
const PrefixPrinter &prefix) const {
|
||||
OS << "# Machine code for " << Fn->getNameStr () << "():\n";
|
||||
|
||||
// Print Frame Information
|
||||
@ -260,8 +261,10 @@ void MachineFunction::print(std::ostream &OS) const {
|
||||
OS << "\n";
|
||||
}
|
||||
|
||||
for (const_iterator BB = begin(); BB != end(); ++BB)
|
||||
BB->print(OS);
|
||||
for (const_iterator BB = begin(); BB != end(); ++BB) {
|
||||
prefix(OS, *BB);
|
||||
BB->print(OS, prefix);
|
||||
}
|
||||
|
||||
OS << "\n# End machine code for " << Fn->getNameStr () << "().\n\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user