OSDN Git Service

Change .thumb_set to have the same error checks as .set.
authorPete Cooper <peter_cooper@apple.com>
Mon, 22 Jun 2015 19:35:57 +0000 (19:35 +0000)
committerPete Cooper <peter_cooper@apple.com>
Mon, 22 Jun 2015 19:35:57 +0000 (19:35 +0000)
commit54d0bc35feed76f5299689051ec3d728379a9bc2
tree4dffaa1837c675ad6d34b115cf0fd3a2e7d77454
parent18693ad79a53badf1b674bcbcf569ed96e7bd5b1
Change .thumb_set to have the same error checks as .set.

According to the documentation, .thumb_set is 'the equivalent of a .set directive'.

We didn't have equivalent behaviour in terms of all the errors we could throw, for
example, when a symbol is redefined.

This change refactors parseAssignment so that it can be used by .set and .thumb_set
and implements tests for .thumb_set for all the errors thrown by that method.

Reviewed by Rafael EspĂ­ndola.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240318 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCParser/MCAsmParserUtils.h [new file with mode: 0644]
include/llvm/MC/MCStreamer.h
lib/MC/MCParser/AsmParser.cpp
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
test/MC/ARM/thumb_set-diagnostics.s
test/MC/ARM/thumb_set.s