Refactor IPA devirt a bit.
authorMartin Liska <mliska@suse.cz>
Mon, 2 Dec 2019 11:18:31 +0000 (12:18 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 2 Dec 2019 11:18:31 +0000 (11:18 +0000)
commit74fee04253a5007213634150b4505cd6fcab9910
tree1e48621652810407242276de2e0a47c7126a3e6a
parentf87c23751ab207ee44c2956a444c2c80a797d1fe
Refactor IPA devirt a bit.

2019-12-02  Martin Liska  <mliska@suse.cz>

* ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
function.
(debug_tree_odr_name): New.
* ipa-utils.h (get_odr_name_for_type): New.
2019-12-02  Martin Liska  <mliska@suse.cz>

* g++.dg/lto/odr-7_0.C: New test.
* g++.dg/lto/odr-7_1.C: New test.

From-SVN: r278898
gcc/ChangeLog
gcc/ipa-devirt.c
gcc/ipa-utils.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/odr-7_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/odr-7_1.C [new file with mode: 0644]