From 27ba19a17755c92761ccdca41cb51c1f9ba96a4a Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Thu, 23 Apr 2015 20:42:20 +0000 Subject: [PATCH] [Hexagon] Minor cleanup in HexagonFrameLowering llvm-svn: 235645 --- llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp b/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp index c701d25..84417ae 100644 --- a/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp +++ b/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp @@ -579,9 +579,6 @@ void HexagonFrameLowering::insertEpilogueInBlock(MachineBasicBlock &MBB) const { // Handle EH_RETURN. if (RetOpc == Hexagon::EH_RETURN_JMPR) { - MachineOperand &OffsetReg = RetI->getOperand(0); - (void)OffsetReg; // Silence compiler warning. - assert(OffsetReg.isReg() && "Offset should be in register!"); BuildMI(MBB, InsertPt, DL, HII.get(Hexagon::L2_deallocframe)); BuildMI(MBB, InsertPt, DL, HII.get(Hexagon::A2_add), SP) .addReg(SP) @@ -1008,9 +1005,8 @@ static void dump_registers(BitVector &Regs, const TargetRegisterInfo &TRI) { bool HexagonFrameLowering::assignCalleeSavedSpillSlots(MachineFunction &MF, const TargetRegisterInfo *TRI, std::vector &CSI) const { - const Function &F = *MF.getFunction(); - (void)F; // Silence compiler warning. - DEBUG(dbgs() << LLVM_FUNCTION_NAME << " on " << F.getName() << '\n'); + DEBUG(dbgs() << LLVM_FUNCTION_NAME << " on " + << MF.getFunction().getName() << '\n'); MachineFrameInfo *MFI = MF.getFrameInfo(); BitVector SRegs(Hexagon::NUM_TARGET_REGS); -- 2.7.4