diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2004-08-30 13:12:14 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2004-08-30 13:12:14 +0000 |
commit | fc6633e0cf54d9d3a5f57ce6e33dfd1af8a5ac81 (patch) | |
tree | 9371d0d44b6ad4b608ffaecce208e472e1bca5fc /gcc/tree.h | |
parent | bd8a2e96afaf00312fb3b0c1879e440043cf0e46 (diff) | |
download | gcc-fc6633e0cf54d9d3a5f57ce6e33dfd1af8a5ac81.zip gcc-fc6633e0cf54d9d3a5f57ce6e33dfd1af8a5ac81.tar.gz gcc-fc6633e0cf54d9d3a5f57ce6e33dfd1af8a5ac81.tar.bz2 |
tree.h (BINFO_PRIMARY_BASE_OF): Remove.
* tree.h (BINFO_PRIMARY_BASE_OF): Remove.
(struct tree_binfo): Remove primary field.
* cp/cp-tree.h (BINFO_PRIMARY_P): Use a binfo flag.
(BINFO_INDIRECT_PRIMARY_P): Remove.
* cp/class.c (determine_primary_base): Rename to ...
(determine_primary_bases): ... here. Set all primary bases.
(set_primary_base): Remove.
(mark_primary_bases): Remove.
(build_simple_base_path, walk_subobject_offsets,
propagate_binfo_offsets, end_of_class): Adjust.
(layout_class_type): Rename determine_primary_base call.
(dump_class_hierarchy_r, dump_vtable): Adjust. Don't pass a binfo
to type_as_string.
(dfs_build_secondary_vptr_vtt_inits, dfs_accumulate_vtbl_inits,
build_rtti_vtbl_entries): Adjust.
* cp/init.c (build_vtbl_address): Adjust.
From-SVN: r86766
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -1706,15 +1706,10 @@ struct tree_type GTY(()) found. NULL_TREE if there is no secondary vptr in the VTT. */ #define BINFO_VPTR_INDEX(NODE) (TREE_BINFO_CHECK(NODE)->binfo.vtt_vptr) -/* The binfo of which NODE is a primary base. (This is different from - BINFO_INHERITANCE_CHAIN for virtual base because a virtual base is - sometimes a primary base for a class for which it is not an - immediate base.) */ -#define BINFO_PRIMARY_BASE_OF(NODE) (TREE_BINFO_CHECK(NODE)->binfo.primary) - /* The BINFO_INHERITANCE_CHAIN points at the binfo for the base inheriting this base for non-virtual bases. For virtual bases it - points to the binfo of the most derived type. */ + points either to the binfo for which this is a primary binfo, or to + the binfo of the most derived type. */ #define BINFO_INHERITANCE_CHAIN(NODE) \ (TREE_BINFO_CHECK(NODE)->binfo.inheritance) @@ -1731,7 +1726,6 @@ struct tree_binfo GTY (()) tree vtt_subvtt; tree vtt_vptr; - tree primary; VEC(tree) base_binfos; }; |