* symtab.h (free_symtab): Remove.

(forget_cached_source_info_for_objfile): Declare.
	* symmisc.c (free_symtab): Remove.
	* source.c (forget_cached_source_info_for_objfile): New function.
	(forget_cached_source_info): Use it.
	* objfiles.c (free_objfile): Simplify check before calling
	clear_current_source_symtab_and_line.  Call
	forget_cached_source_info_for_objfile.
This commit is contained in:
Tom Tromey
2011-04-04 15:19:59 +00:00
parent 30cc903e7c
commit 00174a8637
5 changed files with 43 additions and 36 deletions

View File

@ -79,18 +79,6 @@ struct print_symbol_args
static int print_symbol (void *);
/* Free all the storage associated with the struct symtab <- S. */
void
free_symtab (struct symtab *s)
{
/* Free source-related stuff. */
if (s->line_charpos != NULL)
xfree (s->line_charpos);
if (s->fullname != NULL)
xfree (s->fullname);
xfree (s);
}
void
print_symbol_bcache_statistics (void)