OSDN Git Service

[SEH] Use reportError instead of report_fatal_error for bad directives
authorReid Kleckner <rnk@google.com>
Tue, 10 Oct 2017 01:26:25 +0000 (01:26 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 10 Oct 2017 01:26:25 +0000 (01:26 +0000)
commitbe1ef6a68c7295e1443899e29a24ed0ce2995470
tree63424abd7f3a7d396f5cd4812070e88a40b0d958
parent4010882fb4546354a7000ee778d3a5eec2f42ff5
[SEH] Use reportError instead of report_fatal_error for bad directives

This makes the .seh_ directives slightly more usable from standalone
assembly files.

This removes a large number of report_fatal_errors and recovers from the
error by ignoring the directive.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315262 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCStreamer.h
include/llvm/MC/MCWinCOFFStreamer.h
lib/MC/MCAsmStreamer.cpp
lib/MC/MCParser/COFFAsmParser.cpp
lib/MC/MCStreamer.cpp
lib/MC/MCWinCOFFStreamer.cpp
lib/Target/X86/MCTargetDesc/X86WinCOFFStreamer.cpp
test/MC/AsmParser/seh-directive-errors.s [new file with mode: 0644]
test/MC/COFF/seh-stackalloc-zero.s