mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Make consistent use of MCPhysReg instead of uint16_t throughout the tree.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205610 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -110,7 +110,7 @@ uint64_t MipsFrameLowering::estimateStackSize(const MachineFunction &MF) const {
|
||||
Offset = std::max(Offset, -MFI->getObjectOffset(I));
|
||||
|
||||
// Conservatively assume all callee-saved registers will be saved.
|
||||
for (const uint16_t *R = TRI.getCalleeSavedRegs(&MF); *R; ++R) {
|
||||
for (const MCPhysReg *R = TRI.getCalleeSavedRegs(&MF); *R; ++R) {
|
||||
unsigned Size = TRI.getMinimalPhysRegClass(*R)->getSize();
|
||||
Offset = RoundUpToAlignment(Offset + Size, Size);
|
||||
}
|
||||
|
Reference in New Issue
Block a user