MC: formalise some assertions into proper errors
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 22 May 2014 02:18:10 +0000 (02:18 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 22 May 2014 02:18:10 +0000 (02:18 +0000)
commit6663f8f2c0b930731dbbfd51d19d9d942cd34ad2
tree2ee253a42295071ea4a0471f09737215f4612563
parent0e6e7cf385ca3f269e40a482a625a44290a0a2e4
MC: formalise some assertions into proper errors

Now that clang can be used as an assembler via the IAS, invalid assembler inputs
would cause the assertions to trigger.  Although we cannot recover from the
errors here, nor provide caret diagnostics, attempt to handle them slightly more
gracefully by reporting a fatal error.

llvm-svn: 209387
llvm/include/llvm/MC/MCWinCOFFStreamer.h
llvm/lib/MC/WinCOFFStreamer.cpp
llvm/test/MC/COFF/invalid-def.s [new file with mode: 0644]
llvm/test/MC/COFF/invalid-endef.s [new file with mode: 0644]
llvm/test/MC/COFF/invalid-scl-range.s [new file with mode: 0644]
llvm/test/MC/COFF/invalid-scl.s [new file with mode: 0644]
llvm/test/MC/COFF/invalid-type-range.s [new file with mode: 0644]
llvm/test/MC/COFF/invalid-type.s [new file with mode: 0644]