Funclets are emitted by WinException which doesn't have access to
X86TargetStreamer so it's hard to make a quick fix for this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315538
91177308-0d34-0410-b5e6-
96231b3b80d8
EmitFPOData =
Subtarget->isTargetWin32() && MF.getMMI().getModule()->getCodeViewFlag();
+ // FIXME: EH
+ if (MF->hasEHFunclets())
+ EmitFPOData = false;
+
SetupMachineFunction(MF);
if (Subtarget->isTargetCOFF()) {
bool IsWin64Prologue = MF.getTarget().getMCAsmInfo()->usesWindowsCFI();
bool NeedsWin64CFI = IsWin64Prologue && Fn->needsUnwindTableEntry();
bool NeedsWinFPO = STI.isTargetWin32() && MMI.getModule()->getCodeViewFlag();
+ NeedsWinFPO &= !MF->hasEHFunclets(); // FIXME
bool NeedsWinCFI = NeedsWin64CFI || NeedsWinFPO;
bool NeedsDwarfCFI =
!IsWin64Prologue && (MMI.hasDebugInfo() || Fn->needsUnwindTableEntry());