GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
cooked_index_storage Class Reference

Public Member Functions

 cooked_index_storage ()
 
 DISABLE_COPY_AND_ASSIGN (cooked_index_storage)
 
abbrev_cacheget_abbrev_cache ()
 
cutu_readerget_reader (dwarf2_per_cu_data *per_cu)
 
cutu_readerpreserve (std::unique_ptr< cutu_reader > reader)
 
const cooked_index_entryadd (sect_offset die_offset, enum dwarf_tag tag, cooked_index_flag flags, const char *name, const cooked_index_entry *parent_entry, dwarf2_per_cu_data *per_cu)
 
std::unique_ptr< cooked_index_shardrelease ()
 
addrmap_mutableget_addrmap ()
 

Static Private Member Functions

static hashval_t hash_cutu_reader (const void *a)
 
static int eq_cutu_reader (const void *a, const void *b)
 

Private Attributes

abbrev_cache m_abbrev_cache
 
htab_up m_reader_hash
 
std::unique_ptr< cooked_index_shardm_index
 
addrmap_mutable m_addrmap
 

Detailed Description

Definition at line 4604 of file read.c.

Constructor & Destructor Documentation

◆ cooked_index_storage()

cooked_index_storage::cooked_index_storage ( )
inline

Definition at line 4608 of file read.c.

Member Function Documentation

◆ add()

const cooked_index_entry * cooked_index_storage::add ( sect_offset die_offset,
enum dwarf_tag tag,
cooked_index_flag flags,
const char * name,
const cooked_index_entry * parent_entry,
dwarf2_per_cu_data * per_cu )
inline

Definition at line 4650 of file read.c.

References flags, m_index, and name.

Referenced by cooked_indexer::index_dies(), and cooked_indexer::make_index().

◆ DISABLE_COPY_AND_ASSIGN()

cooked_index_storage::DISABLE_COPY_AND_ASSIGN ( cooked_index_storage )

◆ eq_cutu_reader()

static int cooked_index_storage::eq_cutu_reader ( const void * a,
const void * b )
inlinestaticprivate

Definition at line 4683 of file read.c.

References die_reader_specs::cu, dwarf2_per_cu_data::index, and dwarf2_cu::per_cu.

◆ get_abbrev_cache()

abbrev_cache * cooked_index_storage::get_abbrev_cache ( )
inline

Definition at line 4620 of file read.c.

References m_abbrev_cache.

Referenced by cooked_indexer::ensure_cu_exists(), and process_psymtab_comp_unit().

◆ get_addrmap()

addrmap_mutable * cooked_index_storage::get_addrmap ( )
inline

◆ get_reader()

cutu_reader * cooked_index_storage::get_reader ( dwarf2_per_cu_data * per_cu)
inline

Definition at line 4627 of file read.c.

References dwarf2_per_cu_data::index, and m_reader_hash.

Referenced by cooked_indexer::ensure_cu_exists().

◆ hash_cutu_reader()

static hashval_t cooked_index_storage::hash_cutu_reader ( const void * a)
inlinestaticprivate

Definition at line 4676 of file read.c.

References die_reader_specs::cu, dwarf2_per_cu_data::index, and dwarf2_cu::per_cu.

◆ preserve()

cutu_reader * cooked_index_storage::preserve ( std::unique_ptr< cutu_reader > reader)
inline

Definition at line 4635 of file read.c.

References abbrev_cache::add(), m_abbrev_cache, and m_reader_hash.

Referenced by cooked_indexer::ensure_cu_exists().

◆ release()

std::unique_ptr< cooked_index_shard > cooked_index_storage::release ( )
inline

Definition at line 4661 of file read.c.

References m_addrmap, and m_index.

Member Data Documentation

◆ m_abbrev_cache

abbrev_cache cooked_index_storage::m_abbrev_cache
private

Definition at line 4691 of file read.c.

Referenced by get_abbrev_cache(), and preserve().

◆ m_addrmap

addrmap_mutable cooked_index_storage::m_addrmap
private

Definition at line 4698 of file read.c.

Referenced by get_addrmap(), and release().

◆ m_index

std::unique_ptr<cooked_index_shard> cooked_index_storage::m_index
private

Definition at line 4695 of file read.c.

Referenced by add(), and release().

◆ m_reader_hash

htab_up cooked_index_storage::m_reader_hash
private

Definition at line 4693 of file read.c.

Referenced by get_reader(), and preserve().


The documentation for this class was generated from the following file: