call_summary: modify cgraph hooks.
authorMartin Liska <mliska@suse.cz>
Mon, 26 Oct 2020 14:11:59 +0000 (15:11 +0100)
committerMartin Liska <mliska@suse.cz>
Tue, 27 Oct 2020 07:25:50 +0000 (08:25 +0100)
commit251c9aea8f621afafe0632a034b4405e0d652660
tree1ad2ca88d3ed349c2d7b277f9a51f53dba29d284
parent18cb6195fda69ea8ab8b8a5290dd8c9f8d52b0e6
call_summary: modify cgraph hooks.

gcc/ChangeLog:

* symbol-summary.h (function_summary_base::unregister_hooks):
Call disable_insertion_hook and disable_duplication_hook.
(function_summary_base::symtab_insertion): New field.
(function_summary_base::symtab_removal): Likewise.
(function_summary_base::symtab_duplication): Likewise.
Register hooks in function_summary_base and directly register
(or unregister) hooks.
gcc/symbol-summary.h