ARM: improve diagnostics for .word directive
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 26 Jan 2014 22:29:50 +0000 (22:29 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 26 Jan 2014 22:29:50 +0000 (22:29 +0000)
commit4fefc13b5e804509691cb6e0641b1790352c3293
tree129da7051797fe8e74bbc2fc5ea27d4fd7c523b5
parent10096880c8fb08c58d4476577551397bc29f9508
ARM: improve diagnostics for .word directive

If a complex expression was passed to the .word directive and the first part of
the directive failed to parse, a secondary diagnostic would be produced that
would clutter the error diagnostics.  Improve the diagnostics by consuming the
remainder of the statement.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200160 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
test/MC/ARM/directive-word-diagnostics.s [new file with mode: 0644]