ARM IAS: handle errors more appropriately
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 28 Dec 2013 22:47:53 +0000 (22:47 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 28 Dec 2013 22:47:53 +0000 (22:47 +0000)
commit0c4b10264b52afb54675737bd769ddbf4e7aad7b
tree01d0c0e1cf5f4672780303a986858806ff879b30
parent7afe48180179bbe20c60803934e5440e50063e18
ARM IAS: handle errors more appropriately

Directive parsers must return false if the target assembler is interested in
handling the directive.  The Error member function returns true always.  Using
the 'return Error()' pattern would incorrectly indicate to the general parser
that the target was not interested in the directive, when in reality it simply
encountered a badly formed directive or some other error.  This corrects the
behaviour to ensure that the parser behaves appropriately.

llvm-svn: 198132
llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp