diff options
author | Simon Tatham <simon.tatham@arm.com> | 2018-05-02 13:17:26 +0000 |
---|---|---|
committer | Simon Tatham <simon.tatham@arm.com> | 2018-05-02 13:17:26 +0000 |
commit | 6a02604ee4e75cffb36086a69d2c4ba41072fb50 (patch) | |
tree | 2c83aa556326aa293d7993340049807682e0fa70 /llvm/test | |
parent | e222d927074ebfacd0ada324ab85b5823c771a98 (diff) | |
download | bcm5719-llvm-6a02604ee4e75cffb36086a69d2c4ba41072fb50.tar.gz bcm5719-llvm-6a02604ee4e75cffb36086a69d2c4ba41072fb50.zip |
[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
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/TableGen/foreach-leak.td | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/TableGen/foreach-leak.td b/llvm/test/TableGen/foreach-leak.td index 68867e1081b..cc8ca898d01 100644 --- a/llvm/test/TableGen/foreach-leak.td +++ b/llvm/test/TableGen/foreach-leak.td @@ -1,6 +1,9 @@ // RUN: llvm-tblgen %s | FileCheck %s // XFAIL: vg_leak +// CHECK: --- Classes --- +// CHECK: list<int> ret = !foreach(a, + // CHECK: --- Defs --- // CHECK: def C0 { |