LLDB mainline
lldb_private::npdb::CompileUnitIndex Class Reference

Indexes information about all compile units. More...

#include <CompileUnitIndex.h>

Public Member Functions

 CompileUnitIndex (PdbIndex &index)
CompilandIndexItemGetOrCreateCompiland (uint16_t modi)
const CompilandIndexItemGetCompiland (uint16_t modi) const
CompilandIndexItemGetCompiland (uint16_t modi)
llvm::SmallString< 64 > GetMainSourceFile (const CompilandIndexItem &item) const

Private Attributes

PdbIndexm_index
llvm::DenseMap< uint16_t, std::unique_ptr< CompilandIndexItem > > m_comp_units

Detailed Description

Indexes information about all compile units.

This is really just a map of global compile unit index to |CompilandIndexItem| structures.

Definition at line 90 of file CompileUnitIndex.h.

Constructor & Destructor Documentation

◆ CompileUnitIndex()

lldb_private::npdb::CompileUnitIndex::CompileUnitIndex ( PdbIndex & index)
inlineexplicit

Definition at line 95 of file CompileUnitIndex.h.

References m_index.

Member Function Documentation

◆ GetCompiland() [1/2]

CompilandIndexItem * CompileUnitIndex::GetCompiland ( uint16_t modi)

Definition at line 204 of file CompileUnitIndex.cpp.

References m_comp_units.

◆ GetCompiland() [2/2]

◆ GetMainSourceFile()

llvm::SmallString< 64 > CompileUnitIndex::GetMainSourceFile ( const CompilandIndexItem & item) const

◆ GetOrCreateCompiland()

Member Data Documentation

◆ m_comp_units

llvm::DenseMap<uint16_t, std::unique_ptr<CompilandIndexItem> > lldb_private::npdb::CompileUnitIndex::m_comp_units
private

Definition at line 92 of file CompileUnitIndex.h.

Referenced by GetCompiland(), GetCompiland(), and GetOrCreateCompiland().

◆ m_index

PdbIndex& lldb_private::npdb::CompileUnitIndex::m_index
private

Definition at line 91 of file CompileUnitIndex.h.

Referenced by CompileUnitIndex(), GetMainSourceFile(), and GetOrCreateCompiland().


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