On behalf of Matthew Wahab:
authorEvgeny Astigeevich <evgeny.astigeevich@arm.com>
Tue, 16 Dec 2014 18:16:17 +0000 (18:16 +0000)
committerEvgeny Astigeevich <evgeny.astigeevich@arm.com>
Tue, 16 Dec 2014 18:16:17 +0000 (18:16 +0000)
commita4020f211b3f2f24591279854b8e1efd2cce28dc
tree93a81c5c889de185b62f5fb8e8afb9b457455908
parent3ddc32292d35c73a39ef9c54a95bdf04717438f9
On behalf of Matthew Wahab:

An instruction alias defined with InstAlias and an optional operand in the
middle of the AsmString field, "..${a} <operands>", would get the final
"}" printed in the instruction disassembly. This wouldn't happen if the optional
operand appeared as the last item in the AsmString which is how the current
backends avoided the problem.

There don't appear to be any tests for this part of Tablegen but it passes the
pre-commit tests. Manually tested the change by enabling the generic alias
printer in the ARM backend and checking the output.

Differential Revision: http://reviews.llvm.org/D6529

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224348 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/AsmWriterEmitter.cpp