[TableGen] Don't quote variable name when printing !foreach.
authorSimon Tatham <simon.tatham@arm.com>
Wed, 2 May 2018 13:17:26 +0000 (13:17 +0000)
committerSimon Tatham <simon.tatham@arm.com>
Wed, 2 May 2018 13:17:26 +0000 (13:17 +0000)
commit6a02604ee4e75cffb36086a69d2c4ba41072fb50
tree2c83aa556326aa293d7993340049807682e0fa70
parente222d927074ebfacd0ada324ab85b5823c771a98
[TableGen] Don't quote variable name when printing !foreach.

An input !foreach expression such as !foreach(a, lst, !add(a, 1))
would be re-emitted by llvm-tblgen -print-records with the first
argument in quotes, giving !foreach("a", lst, !add(a, 1)), which isn't
valid TableGen input syntax.

Reviewers: nhaehnle

Reviewed By: nhaehnle

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D46352

llvm-svn: 331351
llvm/lib/TableGen/Record.cpp
llvm/test/TableGen/foreach-leak.td