Index: llvm/include/llvm/CodeGen/TargetFrameLowering.h =================================================================== --- llvm/include/llvm/CodeGen/TargetFrameLowering.h +++ llvm/include/llvm/CodeGen/TargetFrameLowering.h @@ -215,11 +215,6 @@ emitCalleeSavedFrameMoves(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI) const {} - virtual void emitCalleeSavedFrameMoves(MachineBasicBlock &MBB, - MachineBasicBlock::iterator MBBI, - const DebugLoc &DL, - bool IsPrologue) const {} - /// Replace a StackProbe stub (if any) with the actual probe code inline virtual void inlineStackProbe(MachineFunction &MF, MachineBasicBlock &PrologueMBB) const {} Index: llvm/lib/Target/M68k/M68kFrameLowering.h =================================================================== --- llvm/lib/Target/M68k/M68kFrameLowering.h +++ llvm/lib/Target/M68k/M68kFrameLowering.h @@ -57,10 +57,9 @@ void BuildCFI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, const DebugLoc &DL, const MCCFIInstruction &CFIInst) const; - void emitCalleeSavedFrameMoves(MachineBasicBlock &MBB, - MachineBasicBlock::iterator MBBI, - const DebugLoc &DL, - bool IsProlog) const override; + void emitPrologueCalleeSavedFrameMoves(MachineBasicBlock &MBB, + MachineBasicBlock::iterator MBBI, + const DebugLoc &DL) const; unsigned getPSPSlotOffsetFromSP(const MachineFunction &MF) const; Index: llvm/lib/Target/M68k/M68kFrameLowering.cpp =================================================================== --- llvm/lib/Target/M68k/M68kFrameLowering.cpp +++ llvm/lib/Target/M68k/M68kFrameLowering.cpp @@ -447,9 +447,9 @@ .addCFIIndex(CFIIndex); } -void M68kFrameLowering::emitCalleeSavedFrameMoves( +void M68kFrameLowering::emitPrologueCalleeSavedFrameMoves( MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, - const DebugLoc &DL, bool IsProlog) const { + const DebugLoc &DL) const { MachineFunction &MF = *MBB.getParent(); MachineFrameInfo &MFI = MF.getFrameInfo(); MachineModuleInfo &MMI = MF.getMMI(); @@ -656,7 +656,7 @@ // Emit DWARF info specifying the offsets of the callee-saved registers. if (PushedRegs) - emitCalleeSavedFrameMoves(MBB, MBBI, DL, true); + emitPrologueCalleeSavedFrameMoves(MBB, MBBI, DL); } // TODO Interrupt handlers Index: llvm/lib/Target/X86/X86FrameLowering.h =================================================================== --- llvm/lib/Target/X86/X86FrameLowering.h +++ llvm/lib/Target/X86/X86FrameLowering.h @@ -65,8 +65,7 @@ void emitCalleeSavedFrameMoves(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, - const DebugLoc &DL, - bool IsPrologue) const override; + const DebugLoc &DL, bool IsPrologue) const; /// emitProlog/emitEpilog - These methods insert prolog and epilog code into /// the function.