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,12 @@ void BuildCFI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, const DebugLoc &DL, const MCCFIInstruction &CFIInst) const; + // This is used for suppressing -Woverloaded-virtual + using TargetFrameLowering::emitCalleeSavedFrameMoves; + void emitCalleeSavedFrameMoves(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, - const DebugLoc &DL, - bool IsProlog) const override; + 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 @@ -449,7 +449,7 @@ void M68kFrameLowering::emitCalleeSavedFrameMoves( 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); + emitCalleeSavedFrameMoves(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.