AsmParser: cleanup diagnostics for .rep/.rept
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 28 Dec 2013 06:39:29 +0000 (06:39 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 28 Dec 2013 06:39:29 +0000 (06:39 +0000)
commit14b42a1c92b47bced8e6b94a0213a8970d1c0edd
treee7ac97681b39c1a7c90b6488a3bfaadba29a8bf1
parentb5191e98e883fe804c400cc5187fe54d41a808e0
AsmParser: cleanup diagnostics for .rep/.rept

Avoid double diagnostics for invalid expressions for count.  Improve caret
location for negative count.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198099 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCParser/AsmParser.cpp
test/MC/AsmParser/directive_rept-diagnostics.s [new file with mode: 0644]