cooked_index_entry_ref parent_entry,
dwarf2_per_cu_data *per_cu)
{
- return m_index->add (die_offset, tag, flags, per_cu->lang (),
+ return m_shard->add (die_offset, tag, flags, per_cu->lang (),
name, parent_entry, per_cu);
}
then transfer ownership of the index to the caller. */
std::unique_ptr<cooked_index_shard> release ()
{
- m_index->install_addrmap (&m_addrmap);
- return std::move (m_index);
+ m_shard->install_addrmap (&m_addrmap);
+ return std::move (m_shard);
}
/* Return the mutable addrmap that is currently being created. */
/* A hash table of cutu_reader objects. */
htab_up m_reader_hash;
/* The index shard that is being constructed. */
- std::unique_ptr<cooked_index_shard> m_index;
+ std::unique_ptr<cooked_index_shard> m_shard;
/* Parent map for each CU that is read. */
parent_map m_parent_map;
eq_cutu_reader,
htab_delete_entry<cutu_reader>,
xcalloc, xfree)),
- m_index (new cooked_index_shard)
+ m_shard (new cooked_index_shard)
{
}
{
/* Only handle the scanning results here. Complaints and exceptions
can only be dealt with on the main thread. */
- std::vector<std::unique_ptr<cooked_index_shard>> indexes;
+ std::vector<std::unique_ptr<cooked_index_shard>> shards;
+
for (auto &one_result : m_results)
{
- indexes.push_back (std::move (std::get<0> (one_result)));
+ shards.push_back (std::move (std::get<0> (one_result)));
m_all_parents_map.add_map (std::get<3> (one_result));
}
/* This has to wait until we read the CUs, we need the list of DWOs. */
process_skeletonless_type_units (m_per_objfile, &m_index_storage);
- indexes.push_back (m_index_storage.release ());
- indexes.shrink_to_fit ();
+ shards.push_back (m_index_storage.release ());
+ shards.shrink_to_fit ();
m_all_parents_map.add_map (m_index_storage.release_parent_map ());
cooked_index *table
= (gdb::checked_static_cast<cooked_index *>
(per_bfd->index_table.get ()));
- table->set_contents (std::move (indexes), &m_warnings,
+ table->set_contents (std::move (shards), &m_warnings,
&m_all_parents_map);
}