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)
commitf4f930c7955fa1c58197dd89d4c6cbb7a9ed45ba
tree3fedc10820d3b3bbb3f829783bfb671858c3da7c
parent424bbbbbbcadfa402b2e103e8fdec48f99af7fae
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209387 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCWinCOFFStreamer.h
lib/MC/WinCOFFStreamer.cpp
test/MC/COFF/invalid-def.s [new file with mode: 0644]
test/MC/COFF/invalid-endef.s [new file with mode: 0644]
test/MC/COFF/invalid-scl-range.s [new file with mode: 0644]
test/MC/COFF/invalid-scl.s [new file with mode: 0644]
test/MC/COFF/invalid-type-range.s [new file with mode: 0644]
test/MC/COFF/invalid-type.s [new file with mode: 0644]