@@ -267,7 +267,7 @@ static bool hasNonRISpills(const MachineFunction &MF) {
267267// / MustSaveLR - Return true if this function requires that we save the LR
268268// / register onto the stack in the prolog and restore it in the epilog of the
269269// / function.
270- static bool MustSaveLR (const MachineFunction &MF, unsigned LR) {
270+ static bool MustSaveLR (const MachineFunction &MF, MCRegister LR) {
271271 const PPCFunctionInfo *MFI = MF.getInfo <PPCFunctionInfo>();
272272
273273 // 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,
311311
312312 const PPCRegisterInfo *RegInfo = Subtarget.getRegisterInfo ();
313313
314- unsigned LR = RegInfo->getRARegister ();
314+ MCRegister LR = RegInfo->getRARegister ();
315315 bool DisableRedZone = MF.getFunction ().hasFnAttribute (Attribute::NoRedZone);
316316 bool CanUseRedZone = !MFI.hasVarSizedObjects () && // No dynamic alloca.
317317 !MFI.adjustsStack () && // No calls.
@@ -1987,7 +1987,7 @@ void PPCFrameLowering::determineCalleeSaves(MachineFunction &MF,
19871987
19881988 // Save and clear the LR state.
19891989 PPCFunctionInfo *FI = MF.getInfo <PPCFunctionInfo>();
1990- unsigned LR = RegInfo->getRARegister ();
1990+ MCRegister LR = RegInfo->getRARegister ();
19911991 FI->setMustSaveLR (MustSaveLR (MF, LR));
19921992 SavedRegs.reset (LR);
19931993
@@ -2344,8 +2344,8 @@ bool PPCFrameLowering::assignCalleeSavedSpillSlots(
23442344
23452345 for (auto &CalleeSaveReg : CSI) {
23462346 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 );
23492349
23502350 if ( // Check only for SuperRegs.
23512351 Lower &&
0 commit comments