Example of converting global state to per-pass state.
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 13 Aug 2013 00:45:27 +0000 (00:45 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Tue, 13 Aug 2013 00:45:27 +0000 (00:45 +0000)
commit3944d88d35e71f0aaf58c2c82bc7cf34414cb6ac
tree781c743dbfc59857fc8546c78365b19a3a58d137
parentb338b23f8875f26f1c4f598faac6c36874ae48f2
Example of converting global state to per-pass state.

gcc/testsuite

2013-08-13  David Malcolm  <dmalcolm@redhat.com>

Example of converting global state to per-pass state.

* gcc.dg/plugin/one_time_plugin.c (one_pass::execute): Convert
global state "static int counter" to...
(one_pass::counter): ...this instance data.

From-SVN: r201681
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/plugin/one_time_plugin.c