Make use of DiagnosticType to provide better AArch64 diagnostics.
authorTim Northover <Tim.Northover@arm.com>
Mon, 11 Feb 2013 09:29:37 +0000 (09:29 +0000)
committerTim Northover <Tim.Northover@arm.com>
Mon, 11 Feb 2013 09:29:37 +0000 (09:29 +0000)
commit60baeb984fde23cc3c6724779a547eab17dfe948
tree5a05b0bfe080a436970469e2dd3459cfc4152f4a
parentb47fb384fc07e9c3af9cdf87d1cbdbcf76c331fc
Make use of DiagnosticType to provide better AArch64 diagnostics.

This gives a DiagnosticType to all AsmOperands in sight. This replaces all
"invalid operand" diagnostics with something more specific. The messages given
should still be sufficiently vague that they're not usually actively misleading
when LLVM guesses your instruction incorrectly.

llvm-svn: 174871
llvm/lib/Target/AArch64/AArch64InstrInfo.td
llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
llvm/test/MC/AArch64/basic-a64-diagnostics.s