Move name_to_pass_map into class pass_manager
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 6 May 2016 15:18:59 +0000 (15:18 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Fri, 6 May 2016 15:18:59 +0000 (15:18 +0000)
commit58d4c8364b5fcfbb21bc1040974fbb0e30700430
tree6555b94afb07ba3011d6b678bf7c938173218880
parent66b0fe8f4ef0d0345a66c9783b056e765ea6065b
Move name_to_pass_map into class pass_manager

gcc/ChangeLog:
* pass_manager.h (pass_manager::register_pass_name): New method.
(pass_manager::get_pass_by_name): New method.
(pass_manager::create_pass_tab): New method.
(pass_manager::m_name_to_pass_map): New field.
* passes.c (name_to_pass_map): Delete global in favor of field
"m_name_to_pass_map" of pass_manager.
(register_pass_name): Rename from a function to...
(pass_manager::register_pass_name): ...this method, updating
for renaming of global "name_to_pass_map" to field
"m_name_to_pass_map".
(create_pass_tab): Rename from a function to...
(pass_manager::create_pass_tab): ...this method, updating
for renaming of global "name_to_pass_map" to field.
(get_pass_by_name): Rename from a function to...
(pass_manager::get_pass_by_name): ...this method.
(enable_disable_pass): Convert use of get_pass_by_name to
a method call, locating the pass_manager singleton.

From-SVN: r235977
gcc/ChangeLog
gcc/pass_manager.h
gcc/passes.c