Skip to content

Commit 6234aba

Browse files
authored
[llvm] No DWARF CFI for UEFI (#138602)
UEFI target uses WinCFI. Update emitEpilogue function to reflect this.
1 parent c6c2e21 commit 6234aba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/X86/X86FrameLowering.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2431,7 +2431,8 @@ void X86FrameLowering::emitEpilogue(MachineFunction &MF,
24312431
uint64_t NumBytes = 0;
24322432

24332433
bool NeedsDwarfCFI = (!MF.getTarget().getTargetTriple().isOSDarwin() &&
2434-
!MF.getTarget().getTargetTriple().isOSWindows()) &&
2434+
!MF.getTarget().getTargetTriple().isOSWindows() &&
2435+
!MF.getTarget().getTargetTriple().isUEFI()) &&
24352436
MF.needsFrameMoves();
24362437

24372438
Register ArgBaseReg;

0 commit comments

Comments
 (0)