ipa: fix dumping with deleted multiversioning nodes
authorEvgeny Kudryashov <kudryashov@ispras.ru>
Thu, 21 Sep 2017 12:54:38 +0000 (12:54 +0000)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Thu, 21 Sep 2017 12:54:38 +0000 (15:54 +0300)
commit9acb459230318eb2f786dc0b974812884a2f3d54
treeab2d39c2d809a1092c2c032f921a8d8bfd916544
parent765b3379354e3018b5440693625f8aace232f44a
ipa: fix dumping with deleted multiversioning nodes

2017-09-21  Evgeny Kudryashov <kudryashov@ispras.ru>

* cgraph.c (delete_function_version): New, broken out from...
(cgraph_node::delete_function_version): ...here.  Rename to
cgraph_node::delete_function_version_by_decl.  Update all uses.
(cgraph_node::remove): Call delete_function_version.

From-SVN: r253066
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h
gcc/cp/decl.c