diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2014-08-16 11:10:23 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2014-08-16 09:10:23 +0000 |
commit | 4d7cf10d2194682a8dbb606631728c612bfaf3bb (patch) | |
tree | b907ef9a6a408c9953805ab48b6f020422eeead2 /gcc/tree-ssa-pre.c | |
parent | 1a985ca83a4da70b0810727942e02badc70852ab (diff) | |
download | gcc-4d7cf10d2194682a8dbb606631728c612bfaf3bb.zip gcc-4d7cf10d2194682a8dbb606631728c612bfaf3bb.tar.gz gcc-4d7cf10d2194682a8dbb606631728c612bfaf3bb.tar.bz2 |
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
Diffstat (limited to 'gcc/tree-ssa-pre.c')
-rw-r--r-- | gcc/tree-ssa-pre.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index 0e968d5..f191ec0 100644 --- a/gcc/tree-ssa-pre.c +++ b/gcc/tree-ssa-pre.c @@ -4374,8 +4374,7 @@ eliminate_dom_walker::before_dom_children (basic_block b) fn, &otr_type, &otr_token, &context, stmt); - get_dynamic_type (instance, &context, - OBJ_TYPE_REF_OBJECT (fn), otr_type, stmt); + context.get_dynamic_type (instance, OBJ_TYPE_REF_OBJECT (fn), otr_type, stmt); vec <cgraph_node *>targets = possible_polymorphic_call_targets (obj_type_ref_class (fn), |