mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
Move register class name strings to a single array in MCRegisterInfo to reduce static table size and number of relocation entries.
Indices into the table are stored in each MCRegisterClass instead of a pointer. A new method, getRegClassName, is added to MCRegisterInfo and TargetRegisterInfo to lookup the string in the table. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222118 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -124,7 +124,7 @@ void VirtRegMap::print(raw_ostream &OS, const Module*) const {
|
||||
if (Virt2PhysMap[Reg] != (unsigned)VirtRegMap::NO_PHYS_REG) {
|
||||
OS << '[' << PrintReg(Reg, TRI) << " -> "
|
||||
<< PrintReg(Virt2PhysMap[Reg], TRI) << "] "
|
||||
<< MRI->getRegClass(Reg)->getName() << "\n";
|
||||
<< TRI->getRegClassName(MRI->getRegClass(Reg)) << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ void VirtRegMap::print(raw_ostream &OS, const Module*) const {
|
||||
unsigned Reg = TargetRegisterInfo::index2VirtReg(i);
|
||||
if (Virt2StackSlotMap[Reg] != VirtRegMap::NO_STACK_SLOT) {
|
||||
OS << '[' << PrintReg(Reg, TRI) << " -> fi#" << Virt2StackSlotMap[Reg]
|
||||
<< "] " << MRI->getRegClass(Reg)->getName() << "\n";
|
||||
<< "] " << TRI->getRegClassName(MRI->getRegClass(Reg)) << "\n";
|
||||
}
|
||||
}
|
||||
OS << '\n';
|
||||
|
||||
Reference in New Issue
Block a user