]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/ipa-devirt.c
ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
authorJan Hubicka <hubicka@ucw.cz>
Sat, 16 Aug 2014 09:10:23 +0000 (11:10 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 16 Aug 2014 09:10:23 +0000 (09:10 +0000)
commit4d7cf10d2194682a8dbb606631728c612bfaf3bb
treeb907ef9a6a408c9953805ab48b6f020422eeead2
parent1a985ca83a4da70b0810727942e02badc70852ab
ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.

* ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
(possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
(get_dynamic_type): Remove.
* ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
(clear_speculation): Bring to ipa-deivrt.h
(get_class_context): Rename to ...
(ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
(contains_type_p): Update.
(get_dynamic_type): Rename to ...
ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
(possible_polymorphic_call_targets): UPdate.
* tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
* ipa-prop.c (ipa_analyze_call_uses): Update.

From-SVN: r214060
gcc/ChangeLog
gcc/ipa-devirt.c
gcc/ipa-prop.c
gcc/ipa-utils.h
gcc/tree-ssa-pre.c