Skip to content

Commit eff6250

Browse files
committed
M68k: Remove hasDebugInfo check
Follow up to a03935b
1 parent ba8126b commit eff6250

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/M68k/M68kFrameLowering.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,13 +475,11 @@ void M68kFrameLowering::emitPrologue(MachineFunction &MF,
475475

476476
MachineBasicBlock::iterator MBBI = MBB.begin();
477477
MachineFrameInfo &MFI = MF.getFrameInfo();
478-
const auto &Fn = MF.getFunction();
479-
MachineModuleInfo &MMI = MF.getMMI();
480478
M68kMachineFunctionInfo *MMFI = MF.getInfo<M68kMachineFunctionInfo>();
481479
uint64_t MaxAlign = calculateMaxStackAlign(MF); // Desired stack alignment.
482480
uint64_t StackSize = MFI.getStackSize(); // Number of bytes to allocate.
483481
bool HasFP = hasFP(MF);
484-
bool NeedsDwarfCFI = MMI.hasDebugInfo() || Fn.needsUnwindTableEntry();
482+
bool NeedsDwarfCFI = MF.needsFrameMoves();
485483
Register FramePtr = TRI->getFrameRegister(MF);
486484
const unsigned MachineFramePtr = FramePtr;
487485
unsigned BasePtr = TRI->getBaseRegister();

0 commit comments

Comments
 (0)