Restore r125595 (reverted in r126336) with modifications:
authorJoerg Sonnenberger <joerg@bec.de>
Thu, 24 Feb 2011 21:59:22 +0000 (21:59 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Thu, 24 Feb 2011 21:59:22 +0000 (21:59 +0000)
commit93c65e6e661eda75711363bdd5ca15909920e1f0
treee81730c5095f094b742ad43c74514fbfb002908a
parent12d18a07a084b073b768e47b9afe45cc3c6a92f2
Restore r125595 (reverted in r126336) with modifications:
Introduce a variable in the AsmParserExtension whether [] is valid in an
expression. If it is true, parse them like (). Enable this for ELF only.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126443 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCParser/MCAsmParserExtension.h
lib/MC/MCParser/AsmParser.cpp
lib/MC/MCParser/ELFAsmParser.cpp
lib/MC/MCParser/MCAsmParserExtension.cpp
test/MC/ARM/bracket-darwin.s [new file with mode: 0644]
test/MC/ELF/bracket-exprs.s [new file with mode: 0644]
test/MC/ELF/bracket.s [new file with mode: 0644]