Commit f03eebe3 by Nathan Sidwell Committed by Nathan Sidwell

tinfo2.cc (__ptr_to_member_data): Rename to ...

	* tinfo2.cc (__ptr_to_member_data): Rename to ...
	(__pointer_to_member_data): ... here. Adjust.
	* rtti.c (create_tinfo_types): Adjust.

From-SVN: r32562
parent beca3558
2000-03-15 Nathan Sidwell <nathan@codesourcery.com> 2000-03-15 Nathan Sidwell <nathan@codesourcery.com>
* tinfo2.cc (__ptr_to_member_data): Rename to ...
(__pointer_to_member_data): ... here. Adjust.
* rtti.c (create_tinfo_types): Adjust.
2000-03-15 Nathan Sidwell <nathan@codesourcery.com>
* cp-tree.h (CPTI_REF_DESC_TYPE, ref_desc_type_node): Remove. * cp-tree.h (CPTI_REF_DESC_TYPE, ref_desc_type_node): Remove.
* decl.c (ref_desc_type_node): Undocument. * decl.c (ref_desc_type_node): Undocument.
* rtti.c (ptr_ref_initializer): Rename to ... * rtti.c (ptr_ref_initializer): Rename to ...
......
...@@ -1752,7 +1752,7 @@ create_tinfo_types () ...@@ -1752,7 +1752,7 @@ create_tinfo_types ()
/* Pointer to member data type_info. Add pointer to the class, pointer /* Pointer to member data type_info. Add pointer to the class, pointer
to the member's type info and qualifications flags. */ to the member's type info and qualifications flags. */
ptmd_desc_type_node = create_pseudo_type_info ptmd_desc_type_node = create_pseudo_type_info
("__ptr_to_member_type_info", 0, ("__pointer_to_member_type_info", 0,
build_lang_decl (FIELD_DECL, NULL_TREE, ptr_type_info), build_lang_decl (FIELD_DECL, NULL_TREE, ptr_type_info),
build_lang_decl (FIELD_DECL, NULL_TREE, ptr_type_info), build_lang_decl (FIELD_DECL, NULL_TREE, ptr_type_info),
build_lang_decl (FIELD_DECL, NULL_TREE, integer_type_node), build_lang_decl (FIELD_DECL, NULL_TREE, integer_type_node),
......
...@@ -163,9 +163,9 @@ public: ...@@ -163,9 +163,9 @@ public:
}; };
// type information for a pointer to member variable (not function) // type information for a pointer to member variable (not function)
class __ptr_to_member_type_info : public type_info { class __pointer_to_member_type_info : public type_info {
public: public:
virtual ~__ptr_to_member_type_info (); virtual ~__pointer_to_member_type_info ();
// external parts // external parts
const __class_type_info *klass; // class of the member const __class_type_info *klass; // class of the member
const type_info *type; // type of the member const type_info *type; // type of the member
...@@ -178,7 +178,7 @@ public: ...@@ -178,7 +178,7 @@ public:
}; };
public: public:
explicit __ptr_to_member_type_info (const char *n, explicit __pointer_to_member_type_info (const char *n,
const __class_type_info *klass_, const __class_type_info *klass_,
const type_info *type_, const type_info *type_,
int quals_) int quals_)
...@@ -220,8 +220,8 @@ __enum_type_info:: ...@@ -220,8 +220,8 @@ __enum_type_info::
~__enum_type_info () ~__enum_type_info ()
{} {}
__ptr_to_member_type_info:: __pointer_to_member_type_info::
~__ptr_to_member_type_info () ~__pointer_to_member_type_info ()
{} {}
bool __pointer_type_info:: bool __pointer_type_info::
...@@ -271,7 +271,7 @@ do_catch (const type_info *thr_type, ...@@ -271,7 +271,7 @@ do_catch (const type_info *thr_type,
return target->do_catch (thrown_type->target, thr_obj, outer + 2); return target->do_catch (thrown_type->target, thr_obj, outer + 2);
} }
bool __ptr_to_member_type_info:: bool __pointer_to_member_type_info::
do_catch (const type_info *thr_type, do_catch (const type_info *thr_type,
void **thr_obj, void **thr_obj,
unsigned outer) const unsigned outer) const
...@@ -287,8 +287,8 @@ do_catch (const type_info *thr_type, ...@@ -287,8 +287,8 @@ do_catch (const type_info *thr_type,
// But for that to be valid, our outer pointers must be const qualified. // But for that to be valid, our outer pointers must be const qualified.
return false; return false;
const __ptr_to_member_type_info *thrown_type = const __pointer_to_member_type_info *thrown_type =
static_cast <const __ptr_to_member_type_info *> (thr_type); static_cast <const __pointer_to_member_type_info *> (thr_type);
if (thrown_type->quals & ~quals) if (thrown_type->quals & ~quals)
// We're less qualified. // We're less qualified.
......
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