@@ -267,7 +267,7 @@ static bool hasNonRISpills(const MachineFunction &MF) {
267
267
// / MustSaveLR - Return true if this function requires that we save the LR
268
268
// / register onto the stack in the prolog and restore it in the epilog of the
269
269
// / function.
270
- static bool MustSaveLR (const MachineFunction &MF, unsigned LR) {
270
+ static bool MustSaveLR (const MachineFunction &MF, MCRegister LR) {
271
271
const PPCFunctionInfo *MFI = MF.getInfo <PPCFunctionInfo>();
272
272
273
273
// We need a save/restore of LR if there is any def of LR (which is
@@ -311,7 +311,7 @@ PPCFrameLowering::determineFrameLayout(const MachineFunction &MF,
311
311
312
312
const PPCRegisterInfo *RegInfo = Subtarget.getRegisterInfo ();
313
313
314
- unsigned LR = RegInfo->getRARegister ();
314
+ MCRegister LR = RegInfo->getRARegister ();
315
315
bool DisableRedZone = MF.getFunction ().hasFnAttribute (Attribute::NoRedZone);
316
316
bool CanUseRedZone = !MFI.hasVarSizedObjects () && // No dynamic alloca.
317
317
!MFI.adjustsStack () && // No calls.
@@ -1987,7 +1987,7 @@ void PPCFrameLowering::determineCalleeSaves(MachineFunction &MF,
1987
1987
1988
1988
// Save and clear the LR state.
1989
1989
PPCFunctionInfo *FI = MF.getInfo <PPCFunctionInfo>();
1990
- unsigned LR = RegInfo->getRARegister ();
1990
+ MCRegister LR = RegInfo->getRARegister ();
1991
1991
FI->setMustSaveLR (MustSaveLR (MF, LR));
1992
1992
SavedRegs.reset (LR);
1993
1993
@@ -2344,8 +2344,8 @@ bool PPCFrameLowering::assignCalleeSavedSpillSlots(
2344
2344
2345
2345
for (auto &CalleeSaveReg : CSI) {
2346
2346
MCPhysReg Reg = CalleeSaveReg.getReg ();
2347
- MCPhysReg Lower = RegInfo->getSubReg (Reg, 1 );
2348
- MCPhysReg Higher = RegInfo->getSubReg (Reg, 2 );
2347
+ MCRegister Lower = RegInfo->getSubReg (Reg, 1 );
2348
+ MCRegister Higher = RegInfo->getSubReg (Reg, 2 );
2349
2349
2350
2350
if ( // Check only for SuperRegs.
2351
2351
Lower &&
0 commit comments