Fix ipa-modref selftest and destructor
authorJan Hubicka <jh@suse.cz>
Tue, 22 Sep 2020 20:16:00 +0000 (22:16 +0200)
committerJan Hubicka <jh@suse.cz>
Tue, 22 Sep 2020 20:16:00 +0000 (22:16 +0200)
commit39b3b1bdd9ea3d36ce41276b8452506b79cc4368
tree73312eeeb748fae914dff5f43aca2a842270b25a
parent7d8177b027b87cf3211e2d6cf144ec71616425ea
Fix ipa-modref selftest and destructor

* ipa-modref-tree.c: Add namespace selftest.
(modref_tree_c_tests): Rename to ...
(ipa_modref_tree_c_tests): ... this.
* ipa-modref.c (pass_modref): Remove destructor.
(ipa_modref_c_finalize): New function.
* ipa-modref.h (ipa_modref_c_finalize): Declare.
* selftest-run-tests.c (selftest::run_tests): Call
ipa_modref_c_finalize.
* selftest.h (ipa_modref_tree_c_tests): Declare.
* toplev.c: Include ipa-modref-tree.h and ipa-modref.h
(toplev::finalize): Call ipa_modref_c_finalize.
gcc/ipa-modref-tree.c
gcc/ipa-modref.c
gcc/ipa-modref.h
gcc/selftest-run-tests.c
gcc/selftest.h
gcc/toplev.c