[llvm] eff6250 - M68k: Remove hasDebugInfo check

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 24 01:59:40 PDT 2024


Author: Matt Arsenault
Date: 2024-07-24T12:59:33+04:00
New Revision: eff6250494b4bc7feb0199912245e5bacad6f984

URL: https://github.com/llvm/llvm-project/commit/eff6250494b4bc7feb0199912245e5bacad6f984
DIFF: https://github.com/llvm/llvm-project/commit/eff6250494b4bc7feb0199912245e5bacad6f984.diff

LOG: M68k: Remove hasDebugInfo check

Follow up to a03935b9841c4e30b27dd9399e0b93191ad443f3

Added: 
    

Modified: 
    llvm/lib/Target/M68k/M68kFrameLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/M68k/M68kFrameLowering.cpp b/llvm/lib/Target/M68k/M68kFrameLowering.cpp
index c548346f35a2f..1445bac0b92e8 100644
--- a/llvm/lib/Target/M68k/M68kFrameLowering.cpp
+++ b/llvm/lib/Target/M68k/M68kFrameLowering.cpp
@@ -475,13 +475,11 @@ void M68kFrameLowering::emitPrologue(MachineFunction &MF,
 
   MachineBasicBlock::iterator MBBI = MBB.begin();
   MachineFrameInfo &MFI = MF.getFrameInfo();
-  const auto &Fn = MF.getFunction();
-  MachineModuleInfo &MMI = MF.getMMI();
   M68kMachineFunctionInfo *MMFI = MF.getInfo<M68kMachineFunctionInfo>();
   uint64_t MaxAlign = calculateMaxStackAlign(MF); // Desired stack alignment.
   uint64_t StackSize = MFI.getStackSize(); // Number of bytes to allocate.
   bool HasFP = hasFP(MF);
-  bool NeedsDwarfCFI = MMI.hasDebugInfo() || Fn.needsUnwindTableEntry();
+  bool NeedsDwarfCFI = MF.needsFrameMoves();
   Register FramePtr = TRI->getFrameRegister(MF);
   const unsigned MachineFramePtr = FramePtr;
   unsigned BasePtr = TRI->getBaseRegister();


        


More information about the llvm-commits mailing list