Commit 42789557 by Alfred Minarik Committed by Mark Mitchell

rtti.c (get_vmi_pseudo_type_info): Move __vmi_class_type_info pseudo_type_info…

rtti.c (get_vmi_pseudo_type_info): Move __vmi_class_type_info pseudo_type_info creation into the std namespace

	* rtti.c (get_vmi_pseudo_type_info): Move __vmi_class_type_info
	pseudo_type_info creation into the std namespace

From-SVN: r32209
parent 27d26ee7
2000-02-25 Alfred Minarik <a8601248@unet.univie.ac.at>
* rtti.c (get_vmi_pseudo_type_info): Move __vmi_class_type_info
pseudo_type_info creation into the std namespace
2000-02-26 Mark Mitchell <mark@codesourcery.com> 2000-02-26 Mark Mitchell <mark@codesourcery.com>
* cp-tree.h (DECL_NEEDED_P): Tweak to correct usage before EOF. * cp-tree.h (DECL_NEEDED_P): Tweak to correct usage before EOF.
......
...@@ -1734,12 +1734,19 @@ get_vmi_pseudo_type_info (num_bases) ...@@ -1734,12 +1734,19 @@ get_vmi_pseudo_type_info (num_bases)
array_domain = build_index_type (build_int_2 (num_bases, 0)); array_domain = build_index_type (build_int_2 (num_bases, 0));
base_array = build_array_type (base_desc_type_node, array_domain); base_array = build_array_type (base_desc_type_node, array_domain);
if (flag_honor_std)
push_namespace (get_identifier ("std"));
desc = create_pseudo_type_info desc = create_pseudo_type_info
("__vmi_class_type_info", num_bases, ("__vmi_class_type_info", num_bases,
build_lang_decl (FIELD_DECL, NULL_TREE, integer_type_node), build_lang_decl (FIELD_DECL, NULL_TREE, integer_type_node),
build_lang_decl (FIELD_DECL, NULL_TREE, integer_type_node), build_lang_decl (FIELD_DECL, NULL_TREE, integer_type_node),
build_lang_decl (FIELD_DECL, NULL_TREE, base_array), build_lang_decl (FIELD_DECL, NULL_TREE, base_array),
NULL); NULL);
if (flag_honor_std)
pop_namespace ();
TREE_VEC_ELT (vmi_class_desc_type_node, num_bases) = desc; TREE_VEC_ELT (vmi_class_desc_type_node, num_bases) = desc;
return desc; return desc;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment