This makes it more obvious that all created signatured_type objects have
this flag set.
Also, remove an unnecessary assignment in create_cus_hash_table: when
constructing the dwarf2_per_cu_data object, is_debug_types is already
initialized to 0/false.
Change-Id: I6d28b17ac77edc040172254f6970d05ebc4a47f4
Approved-By: Tom Tromey <tom@tromey.com>
auto result
= std::make_unique<signatured_type> (this, section, sect_off, signature);
result->index = all_units.size ();
- result->is_debug_types = true;
tu_stats.nr_tus++;
return result;
}
sect_offset sect_off = (sect_offset) (info_ptr - section.buffer);
dwarf2_per_cu_data per_cu (per_bfd, §ion, sect_off);
- per_cu.is_debug_types = 0;
cutu_reader reader (&per_cu, per_objfile, cu, &dwo_file);
if (!reader.dummy_p)
sect_offset sect_off, ULONGEST signature)
: dwarf2_per_cu_data (per_bfd, section, sect_off),
signature (signature)
- {}
+ {
+ this->is_debug_types = true;
+ }
/* The type's signature. */
ULONGEST signature;