aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/cp/ChangeLog6
-rw-r--r--gcc/cp/rtti.c2
-rw-r--r--gcc/cp/tinfo2.cc22
3 files changed, 18 insertions, 12 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index e24bd9e..f5b91d0 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,11 @@
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.
* decl.c (ref_desc_type_node): Undocument.
* rtti.c (ptr_ref_initializer): Rename to ...
diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c
index 6774151..e8034c3 100644
--- a/gcc/cp/rtti.c
+++ b/gcc/cp/rtti.c
@@ -1752,7 +1752,7 @@ create_tinfo_types ()
/* Pointer to member data type_info. Add pointer to the class, pointer
to the member's type info and qualifications flags. */
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, integer_type_node),
diff --git a/gcc/cp/tinfo2.cc b/gcc/cp/tinfo2.cc
index e0e29ae..c66f8a3 100644
--- a/gcc/cp/tinfo2.cc
+++ b/gcc/cp/tinfo2.cc
@@ -163,9 +163,9 @@ public:
};
// 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:
- virtual ~__ptr_to_member_type_info ();
+ virtual ~__pointer_to_member_type_info ();
// external parts
const __class_type_info *klass; // class of the member
const type_info *type; // type of the member
@@ -178,10 +178,10 @@ public:
};
public:
- explicit __ptr_to_member_type_info (const char *n,
- const __class_type_info *klass_,
- const type_info *type_,
- int quals_)
+ explicit __pointer_to_member_type_info (const char *n,
+ const __class_type_info *klass_,
+ const type_info *type_,
+ int quals_)
: type_info (n), klass (klass_), type (type_), quals (quals_)
{ }
@@ -220,8 +220,8 @@ __enum_type_info::
~__enum_type_info ()
{}
-__ptr_to_member_type_info::
-~__ptr_to_member_type_info ()
+__pointer_to_member_type_info::
+~__pointer_to_member_type_info ()
{}
bool __pointer_type_info::
@@ -271,7 +271,7 @@ do_catch (const type_info *thr_type,
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,
void **thr_obj,
unsigned outer) const
@@ -287,8 +287,8 @@ do_catch (const type_info *thr_type,
// But for that to be valid, our outer pointers must be const qualified.
return false;
- const __ptr_to_member_type_info *thrown_type =
- static_cast <const __ptr_to_member_type_info *> (thr_type);
+ const __pointer_to_member_type_info *thrown_type =
+ static_cast <const __pointer_to_member_type_info *> (thr_type);
if (thrown_type->quals & ~quals)
// We're less qualified.