MC: Diagnose an unexpected token in COFF .section instead of asserting
authorReid Kleckner <reid@kleckner.net>
Mon, 11 Aug 2014 18:34:43 +0000 (18:34 +0000)
committerReid Kleckner <reid@kleckner.net>
Mon, 11 Aug 2014 18:34:43 +0000 (18:34 +0000)
commitb81e6cf6c51866e7e802089a7e0fdb01082fffd7
tree4d74b0327f85541aca3836c0fac3d4dfaf3dd71a
parenta7f0941b8332163a42f84bae7ac2b388c6342345
MC: Diagnose an unexpected token in COFF .section instead of asserting

This can easily arise when trying to assemble and ELF style .section
directive for a COFF object file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215373 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCParser/COFFAsmParser.cpp
test/MC/COFF/section-invalid-flags.s