Skip to content

Commit 65a9754

Browse files
Prabhukgithub-actions[bot]
authored andcommitted
Automerge: [llvm] No DWARF CFI for UEFI (#138602)
UEFI target uses WinCFI. Update emitEpilogue function to reflect this.
2 parents b73ee75 + 6234aba commit 65a9754

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)