Skip to content

Commit 35126c1

Browse files
committed
M68k: Remove hasDebugInfo check when deciding to emit CFI
No other target checks this directly, and this is untested. Use needsFrameMoves, which covers both conditions already and is what most other targets consider.
1 parent b4f3a96 commit 35126c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/M68k/M68kFrameLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,8 @@ MachineBasicBlock::iterator M68kFrameLowering::eliminateCallFramePseudoInstr(
246246
unsigned StackAlign = getStackAlignment();
247247
Amount = alignTo(Amount, StackAlign);
248248

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

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

0 commit comments

Comments
 (0)