From 6217281080ae09dfe50586ed61b9fe7f095c64ca Mon Sep 17 00:00:00 2001 From: prabhukr Date: Mon, 5 May 2025 22:18:53 +0000 Subject: [PATCH] [llvm] No DWARF CFI for UEFI UEFI target uses WinCFI. Update emitEpilogue function to reflect this. --- llvm/lib/Target/X86/X86FrameLowering.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Target/X86/X86FrameLowering.cpp b/llvm/lib/Target/X86/X86FrameLowering.cpp index b7374558604ec..7e960c6420d3b 100644 --- a/llvm/lib/Target/X86/X86FrameLowering.cpp +++ b/llvm/lib/Target/X86/X86FrameLowering.cpp @@ -2431,7 +2431,8 @@ void X86FrameLowering::emitEpilogue(MachineFunction &MF, uint64_t NumBytes = 0; bool NeedsDwarfCFI = (!MF.getTarget().getTargetTriple().isOSDarwin() && - !MF.getTarget().getTargetTriple().isOSWindows()) && + !MF.getTarget().getTargetTriple().isOSWindows() && + !MF.getTarget().getTargetTriple().isUEFI()) && MF.needsFrameMoves(); Register ArgBaseReg;