class DWARFUnitVector
Declaration
class DWARFUnitVector : public SmallVector { /* full declaration omitted */ };
Description
Describe a collection of units. Intended to hold all units either from .debug_info and .debug_types, or from .debug_info.dwo and .debug_types.dwo.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:114
Inherits from: SmallVector
Method Overview
- public llvm::DWARFUnit * addUnit(std::unique_ptr<DWARFUnit> Unit)
- public void addUnitsForDWOSection(llvm::DWARFContext & C, const llvm::DWARFSection & DWOSection, llvm::DWARFSectionKind SectionKind, bool Lazy = false)
- public void addUnitsForSection(llvm::DWARFContext & C, const llvm::DWARFSection & Section, llvm::DWARFSectionKind SectionKind)
- public void finishedInfoUnits()
- public unsigned int getNumInfoUnits() const
- public unsigned int getNumTypesUnits() const
- public unsigned int getNumUnits() const
- public llvm::DWARFUnit * getUnitForIndexEntry(const DWARFUnitIndex::Entry & E)
- public llvm::DWARFUnit * getUnitForOffset(uint64_t Offset) const
Methods
¶llvm::DWARFUnit* addUnit(
std::unique_ptr<DWARFUnit> Unit)
llvm::DWARFUnit* addUnit(
std::unique_ptr<DWARFUnit> Unit)
Description
Add an existing DWARFUnit to this UnitVector. This is used by the DWARF verifier to process unit separately.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:145
Parameters
- std::unique_ptr<DWARFUnit> Unit
¶void addUnitsForDWOSection(
llvm::DWARFContext& C,
const llvm::DWARFSection& DWOSection,
llvm::DWARFSectionKind SectionKind,
bool Lazy = false)
void addUnitsForDWOSection(
llvm::DWARFContext& C,
const llvm::DWARFSection& DWOSection,
llvm::DWARFSectionKind SectionKind,
bool Lazy = false)
Description
Read units from a .debug_info.dwo or .debug_types.dwo section. Calls made before finishedInfoUnits() are assumed to be for .debug_info.dwo sections, calls after finishedInfoUnits() are for .debug_types.dwo sections. Caller must not mix calls to addUnitsForSection and addUnitsForDWOSection.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:140
Parameters
- llvm::DWARFContext& C
- const llvm::DWARFSection& DWOSection
- llvm::DWARFSectionKind SectionKind
- bool Lazy = false
¶void addUnitsForSection(
llvm::DWARFContext& C,
const llvm::DWARFSection& Section,
llvm::DWARFSectionKind SectionKind)
void addUnitsForSection(
llvm::DWARFContext& C,
const llvm::DWARFSection& Section,
llvm::DWARFSectionKind SectionKind)
Description
Read units from a .debug_info or .debug_types section. Calls made before finishedInfoUnits() are assumed to be for .debug_info sections, calls after finishedInfoUnits() are for .debug_types sections. Caller must not mix calls to addUnitsForSection and addUnitsForDWOSection.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:133
Parameters
- llvm::DWARFContext& C
- const llvm::DWARFSection& Section
- llvm::DWARFSectionKind SectionKind
¶void finishedInfoUnits()
void finishedInfoUnits()
Description
Indicate that parsing .debug_info[.dwo] is done, and remaining units will be from .debug_types[.dwo].
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:157
¶unsigned int getNumInfoUnits() const
unsigned int getNumInfoUnits() const
Description
Returns number of units from all .debug_info[.dwo] sections.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:150
¶unsigned int getNumTypesUnits() const
unsigned int getNumTypesUnits() const
Description
Returns number of units from all .debug_types[.dwo] sections.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:154
¶unsigned int getNumUnits() const
unsigned int getNumUnits() const
Description
Returns number of all units held by this instance.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:148
¶llvm::DWARFUnit* getUnitForIndexEntry(
const DWARFUnitIndex::Entry& E)
llvm::DWARFUnit* getUnitForIndexEntry(
const DWARFUnitIndex::Entry& E)
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:127
Parameters
- const DWARFUnitIndex::Entry& E
¶llvm::DWARFUnit* getUnitForOffset(
uint64_t Offset) const
llvm::DWARFUnit* getUnitForOffset(
uint64_t Offset) const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:126
Parameters
- uint64_t Offset