LLDB mainline
Public Member Functions | Private Attributes | List of all members
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

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)

Definition at line 95 of file CompileUnitIndex.h.

Member Function Documentation

◆ GetCompiland() [1/2]

CompilandIndexItem * CompileUnitIndex::GetCompiland ( uint16_t  modi)

Definition at line 205 of file CompileUnitIndex.cpp.

References m_comp_units.

◆ GetCompiland() [2/2]

const CompilandIndexItem * CompileUnitIndex::GetCompiland ( uint16_t  modi) const

◆ GetMainSourceFile()

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

◆ GetOrCreateCompiland()

CompilandIndexItem & CompileUnitIndex::GetOrCreateCompiland ( uint16_t  modi)

Member Data Documentation

◆ m_comp_units

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

Definition at line 92 of file CompileUnitIndex.h.

Referenced by GetCompiland(), and GetOrCreateCompiland().

◆ m_index

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

Definition at line 91 of file CompileUnitIndex.h.

Referenced by GetMainSourceFile(), and GetOrCreateCompiland().

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