* cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
authorJan Hubicka <jh@suse.cz>
Thu, 22 Aug 2013 09:32:07 +0000 (11:32 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 22 Aug 2013 09:32:07 +0000 (09:32 +0000)
commit0e1474e5a6b808f10e251e2e1f3519f9f291d093
tree4a67019baa93af0815f23244fb5d3620e2978469
parente280b6ffe7f9f98573b29360dc36f4f7e41f35b4
* cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.

* ipa-utils.h (update_type_inheritance_graph): Declare.
(possible_polymorphic_call_target_p): Declare.
(possible_polymorphic_call_target_p): New.
* ipa-devirt.c: Update toplevel comments.
(cached_polymorphic_call_targets): Move up.
(odr_type_d): Move ID down.
(polymorphic_type_binfo_p): Update comment.
(odr_hasher::remove): Likewise;
(get_odr_type): Set anonymous_namespace.
(dump_odr_type): Dump it.
(dump_type_inheritance_graph): Do not ICE when there are no ODR types.
(maybe_record_node): Record node in cached_polymorphic_call_targets.
(record_binfo): Add comment.
(free_polymorphic_call_targets_hash): Do not ICE when cache is not built.
(devirt_node_removal_hook): Do not iCE when cache is freed.
(possible_polymorphic_call_target_p): New predicate.
(update_type_inheritance_graph): New function.

From-SVN: r201917
gcc/ChangeLog
gcc/cgraphunit.c
gcc/ipa-devirt.c
gcc/ipa-utils.h