* symtab.c (basic_lookup_transparent_type): Call pre-expand

hook for STATIC_BLOCK types, too.
This commit is contained in:
Keith Seitz 2010-07-23 17:42:13 +00:00
parent 1cd986c585
commit 54ec275af0
2 changed files with 18 additions and 6 deletions

View file

@ -1,3 +1,8 @@
2010-07-23 Keith Seitz <keiths@redhat.com>
* symtab.c (basic_lookup_transparent_type): Call pre-expand
hook for STATIC_BLOCK types, too.
2010-07-23 Keith Seitz <keiths@redhat.com>
* dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr

View file

@ -1642,7 +1642,13 @@ basic_lookup_transparent_type (const char *name)
conversion on the fly and return the found symbol.
*/
ALL_PRIMARY_SYMTABS (objfile, s)
ALL_OBJFILES (objfile)
{
if (objfile->sf)
objfile->sf->qf->pre_expand_symtabs_matching (objfile, STATIC_BLOCK,
name, STRUCT_DOMAIN);
ALL_OBJFILE_SYMTABS (objfile, s)
{
bv = BLOCKVECTOR (s);
block = BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK);
@ -1652,6 +1658,7 @@ basic_lookup_transparent_type (const char *name)
return SYMBOL_TYPE (sym);
}
}
}
ALL_OBJFILES (objfile)
{