This is an archive of the discontinued LLVM Phabricator instance.

TableGen: Remove unused ParseForeachMode
ClosedPublic

Authored by nhaehnle on Mar 5 2018, 12:18 PM.

Details

Summary

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

Diff Detail

Event Timeline

nhaehnle created this revision.Mar 5 2018, 12:18 PM
tra accepted this revision.Mar 5 2018, 7:25 PM
This revision is now accepted and ready to land.Mar 5 2018, 7:25 PM
nhaehnle closed this revision.Mar 14 2018, 3:47 AM

r327119