Skip to content

Commit a03935b

Browse files
authored
M68k: Remove hasDebugInfo check when deciding to emit CFI (llvm#99750)
No other target checks this, and this is untested. I am trying to remove the MachineModuleInfo reference from MachineFunction, and this is the stickiest blocker.
1 parent f65d7fd commit a03935b

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
@@ -246,9 +246,7 @@ MachineBasicBlock::iterator M68kFrameLowering::eliminateCallFramePseudoInstr(
246246
unsigned StackAlign = getStackAlignment();
247247
Amount = alignTo(Amount, StackAlign);
248248

249-
MachineModuleInfo &MMI = MF.getMMI();
250-
const auto &Fn = MF.getFunction();
251-
bool DwarfCFI = MMI.hasDebugInfo() || Fn.needsUnwindTableEntry();
249+
bool DwarfCFI = MF.needsFrameMoves();
252250

253251
// If we have any exception handlers in this function, and we adjust
254252
// the SP before calls, we may need to indicate this to the unwinder

0 commit comments

Comments
 (0)