dwarf2_cu *existing_cu,
enum language pretend_language);
+ void prepare_one_comp_unit (struct dwarf2_cu *cu,
+ enum language pretend_language);
+
struct dwarf2_per_cu_data *m_this_cu;
dwarf2_cu_up m_new_cu;
(sect_offset sect_off, unsigned int offset_in_dwz,
dwarf2_per_bfd *per_bfd);
-static void prepare_one_comp_unit (struct dwarf2_cu *cu,
- struct die_info *comp_unit_die,
- enum language pretend_language);
-
static struct type *set_die_type (struct die_info *, struct type *,
struct dwarf2_cu *, bool = false);
dummy_p = true;
}
- prepare_one_comp_unit (cu, comp_unit_die, pretend_language);
+ prepare_one_comp_unit (cu, pretend_language);
}
/* Initialize a CU (or TU) and read its DIEs.
/* Only a dummy unit can be missing the compunit DIE. */
gdb_assert (dummy_p || comp_unit_die != nullptr);
- prepare_one_comp_unit (cu, comp_unit_die, pretend_language);
+ prepare_one_comp_unit (cu, pretend_language);
}
void
info_ptr = read_toplevel_die (this, &comp_unit_die, info_ptr);
}
- prepare_one_comp_unit (m_new_cu.get (), comp_unit_die, pretend_language);
+ prepare_one_comp_unit (m_new_cu.get (), pretend_language);
}
\f
CU one with no contents; in this case default values are used for
the fields. */
-static void
-prepare_one_comp_unit (struct dwarf2_cu *cu, struct die_info *comp_unit_die,
- enum language pretend_language)
+void
+cutu_reader::prepare_one_comp_unit (struct dwarf2_cu *cu,
+ enum language pretend_language)
{
struct attribute *attr;