X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FMC%2FMCStreamer.cpp;h=03ef7eda72cf80ae6e1b215fe6fb98106c615934;hp=71d4b06b5d95152d9da55e60f5d00ce1578020fd;hb=16e4a624c40596ae6f16ab15f0a9fb30f2fd4f2b;hpb=41cea417fa6d4e25ed06b5e3c555c16766337eb5 diff --git a/lib/MC/MCStreamer.cpp b/lib/MC/MCStreamer.cpp index 71d4b06b5d9..03ef7eda72c 100644 --- a/lib/MC/MCStreamer.cpp +++ b/lib/MC/MCStreamer.cpp @@ -391,11 +391,17 @@ void MCStreamer::EmitCFIWindowSave() { } void MCStreamer::EnsureValidWinFrameInfo() { + const MCAsmInfo *MAI = Context.getAsmInfo(); + if (!MAI->usesWindowsCFI()) + report_fatal_error(".seh_* directives are not supported on this target"); if (!CurrentWinFrameInfo || CurrentWinFrameInfo->End) report_fatal_error("No open Win64 EH frame function!"); } void MCStreamer::EmitWinCFIStartProc(const MCSymbol *Symbol) { + const MCAsmInfo *MAI = Context.getAsmInfo(); + if (!MAI->usesWindowsCFI()) + report_fatal_error(".seh_* directives are not supported on this target"); if (CurrentWinFrameInfo && !CurrentWinFrameInfo->End) report_fatal_error("Starting a function before ending the previous one!");