Make template_symbol derive from symbol
This changes template_symbol to derive from symbol, which seems a bit cleaner; and also more consistent with rust_vtable_symbol. 2017-11-17 Tom Tromey <tom@tromey.com> * dwarf2read.c (read_func_scope): Update. * symtab.h (struct template_symbol): Derive from symbol. <base>: Remove.
This commit is contained in:
parent
71a3c36949
commit
68e745e38e
4 changed files with 11 additions and 10 deletions
|
@ -5800,7 +5800,7 @@ allocate_template_symbol (struct objfile *objfile)
|
|||
struct template_symbol *result;
|
||||
|
||||
result = OBSTACK_ZALLOC (&objfile->objfile_obstack, struct template_symbol);
|
||||
initialize_objfile_symbol_1 (&result->base);
|
||||
initialize_objfile_symbol_1 (result);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue