2002-01-20 Daniel Jacobowitz <drow@mvista.com>

* gdbtypes.h (struct cplus_struct_type): Add is_artificial to
	member function fields.  Add accessor macro
	TYPE_FN_FIELD_ARTIFICIAL.
	* dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
	* c-typeprint.c (c_type_print_base): Skip artificial member
	functions.
This commit is contained in:
Daniel Jacobowitz
2002-01-20 19:20:16 +00:00
parent c3643761b5
commit b02dede253
4 changed files with 37 additions and 6 deletions

View File

@ -2168,6 +2168,11 @@ dwarf2_add_member_fn (struct field_info *fip, struct die_info *die,
}
}
/* Check for artificial methods. */
attr = dwarf_attr (die, DW_AT_artificial);
if (attr && DW_UNSND (attr) != 0)
fnp->is_artificial = 1;
/* Get index in virtual function table if it is a virtual member function. */
attr = dwarf_attr (die, DW_AT_vtable_elem_location);
if (attr)