TableGen: Remove unused ParseForeachMode
authorNicolai Haehnle <nhaehnle@gmail.com>
Fri, 9 Mar 2018 12:24:20 +0000 (12:24 +0000)
committerNicolai Haehnle <nhaehnle@gmail.com>
Fri, 9 Mar 2018 12:24:20 +0000 (12:24 +0000)
commit2435855abe6ccb1cd874f0e5e699815a2697b73d
tree9f254aa1997ec2331c32cdbc0789a62aa67faca7
parent64da6990366551f803474f93030866ae2c283b59
TableGen: Remove unused ParseForeachMode

Use the default ParseValueMode instead of ParseForeachMode when
parsing the rule

  ForeachDeclaration ::= ID '=' '[' ValueList ']'

because the only difference between the two is how an open brace '{'
is handled at the end. In the context of foreach, the 'in' keyword
will appear after the ForeachDeclaration, so this special handling
of '{' is not required.

Change-Id: I4d86bb73bab9ec26752e1273e5213df77cf28d1d
llvm-svn: 327119
llvm/lib/TableGen/TGParser.cpp
llvm/lib/TableGen/TGParser.h