ipa-devirt.c (set_type_binfo): New function.
authorJan Hubicka <hubicka@ucw.cz>
Sat, 28 Jun 2014 18:26:12 +0000 (20:26 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 28 Jun 2014 18:26:12 +0000 (18:26 +0000)
commitc7e1befad2b375b2245dca11329df92b600ef3ed
treecc45d33f98617ef4730134a0e803d45a3e94ce98
parent7ae2e72c93c2c5dfca4ecc64fcda12a558b4332c
ipa-devirt.c (set_type_binfo): New function.

* ipa-devirt.c (set_type_binfo): New function.
(add_type_duplicate): Use it.
(get_odr_type): Sanity check that binfos points to main variants.
(get_class_context): Be sure the context's outer_type is main variant.
(contains_type_p): Walk main variant.
(get_polymorphic_call_info_for_decl): Set outer_type to be main variant.
(get_polymorphic_call_info): Likewise.
(possible_polymorphic_call_targets): Sanity check that we operate on main
variant.

From-SVN: r212107
gcc/ChangeLog
gcc/ipa-devirt.c