From Richard Henderson <rth@cygnus.com>:
* dwarf2read.c (dwarf2_empty_hash_tables): Renamed from dwarf2_empty_die_ref_table; zero dwarf2_cached_types as well. Update all callers.
This commit is contained in:
parent
7a9aaf929a
commit
7f0e3f52b0
|
@ -1,3 +1,9 @@
|
||||||
|
Tue Jul 18 17:13:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
||||||
|
|
||||||
|
From Richard Henderson <rth@cygnus.com>:
|
||||||
|
* dwarf2read.c (dwarf2_empty_hash_tables): Renamed from
|
||||||
|
dwarf2_empty_die_ref_table; zero dwarf2_cached_types as well.
|
||||||
|
Update all callers.
|
||||||
|
|
||||||
2000-07-17 Daniel Berlin <dberlin@redhat.com>
|
2000-07-17 Daniel Berlin <dberlin@redhat.com>
|
||||||
|
|
||||||
|
|
|
@ -729,7 +729,7 @@ void dump_die_list (struct die_info *);
|
||||||
|
|
||||||
void store_in_ref_table (unsigned int, struct die_info *);
|
void store_in_ref_table (unsigned int, struct die_info *);
|
||||||
|
|
||||||
static void dwarf2_empty_die_ref_table (void);
|
static void dwarf2_empty_hash_tables (void);
|
||||||
|
|
||||||
static unsigned int dwarf2_get_ref_die_offset (struct attribute *);
|
static unsigned int dwarf2_get_ref_die_offset (struct attribute *);
|
||||||
|
|
||||||
|
@ -2892,8 +2892,9 @@ read_comp_unit (info_ptr, abfd)
|
||||||
char *cur_ptr;
|
char *cur_ptr;
|
||||||
int nesting_level;
|
int nesting_level;
|
||||||
|
|
||||||
/* Reset die reference table, we are building a new one now. */
|
/* Reset die reference table and cached types table; we are
|
||||||
dwarf2_empty_die_ref_table ();
|
building new ones now. */
|
||||||
|
dwarf2_empty_hash_tables ();
|
||||||
|
|
||||||
cur_ptr = info_ptr;
|
cur_ptr = info_ptr;
|
||||||
nesting_level = 0;
|
nesting_level = 0;
|
||||||
|
@ -5549,9 +5550,10 @@ store_in_ref_table (offset, die)
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
dwarf2_empty_die_ref_table ()
|
dwarf2_empty_hash_tables ()
|
||||||
{
|
{
|
||||||
memset (die_ref_table, 0, sizeof (die_ref_table));
|
memset (die_ref_table, 0, sizeof (die_ref_table));
|
||||||
|
memset (dwarf2_cached_types, 0, sizeof(dwarf2_cached_types));
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int
|
static unsigned int
|
||||||
|
|
Loading…
Reference in New Issue