* linespec.c (collect_methods): Delete.
(add_matching_methods): Reove destructor special case. (find_method): Call find_methods directly instead of collect_methods. * valops.c (value_struct_elt): Remove destructor special cases. (check_field): Likewise. (value_struct_elt_for_reference): Likewise. (destructor_name_p): Remove misleading comment about dtors being "special cases". * gdbtypes.h (get_destructor_fn_field): Remove. No longer needed. * gdbtypes.c (get_destructor_fn_field): Likewise.
This commit is contained in:
parent
a42616899b
commit
19ef5c713c
5 changed files with 20 additions and 117 deletions
|
@ -1334,34 +1334,6 @@ get_vptr_fieldno (struct type *type, struct type **basetypep)
|
|||
}
|
||||
}
|
||||
|
||||
/* Find the method and field indices for the destructor in class type T.
|
||||
Return 1 if the destructor was found, otherwise, return 0. */
|
||||
|
||||
int
|
||||
get_destructor_fn_field (struct type *t,
|
||||
int *method_indexp,
|
||||
int *field_indexp)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < TYPE_NFN_FIELDS (t); i++)
|
||||
{
|
||||
int j;
|
||||
struct fn_field *f = TYPE_FN_FIELDLIST1 (t, i);
|
||||
|
||||
for (j = 0; j < TYPE_FN_FIELDLIST_LENGTH (t, i); j++)
|
||||
{
|
||||
if (is_destructor_name (TYPE_FN_FIELD_PHYSNAME (f, j)) != 0)
|
||||
{
|
||||
*method_indexp = i;
|
||||
*field_indexp = j;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void
|
||||
stub_noname_complaint (void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue