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)
commitb5161863866b64498a7faa20e612c55de4bca6f8
treeaf98f8853b7e1e4cd36444999906c5595422d7dc
parent8597c14e9b32259cc7cfd752d95fd71e7aaba0ec
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174871 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstrInfo.td
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
test/MC/AArch64/basic-a64-diagnostics.s