mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-23 01:25:32 +00:00
Simplify LiveInterval::print().
Don't print out the register number and spill weight, making the TRI argument unnecessary. This allows callers to interpret the reg field. It can currently be a virtual register, a physical register, a spill slot, or a register unit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158031 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -592,15 +592,10 @@ void LiveRange::dump() const {
|
||||
dbgs() << *this << "\n";
|
||||
}
|
||||
|
||||
void LiveInterval::print(raw_ostream &OS, const TargetRegisterInfo *TRI) const {
|
||||
OS << PrintReg(reg, TRI);
|
||||
if (weight != 0)
|
||||
OS << ',' << weight;
|
||||
|
||||
void LiveInterval::print(raw_ostream &OS) const {
|
||||
if (empty())
|
||||
OS << " EMPTY";
|
||||
OS << "EMPTY";
|
||||
else {
|
||||
OS << " = ";
|
||||
for (LiveInterval::Ranges::const_iterator I = ranges.begin(),
|
||||
E = ranges.end(); I != E; ++I) {
|
||||
OS << *I;
|
||||
|
Reference in New Issue
Block a user