LLVM  3.7.0
Public Member Functions | Protected Member Functions | List of all members
llvm::DWARFTypeUnit Class Reference

#include <DWARFTypeUnit.h>

Inheritance diagram for llvm::DWARFTypeUnit:
[legend]
Collaboration diagram for llvm::DWARFTypeUnit:
[legend]

Public Member Functions

 DWARFTypeUnit (DWARFContext &Context, const DWARFSection &Section, const DWARFDebugAbbrev *DA, StringRef RS, StringRef SS, StringRef SOS, StringRef AOS, bool LE, const DWARFUnitSectionBase &UnitSection)
 
uint32_t getHeaderSize () const override
 Size in bytes of the unit header. More...
 
void dump (raw_ostream &OS)
 
- Public Member Functions inherited from llvm::DWARFUnit
 DWARFUnit (DWARFContext &Context, const DWARFSection &Section, const DWARFDebugAbbrev *DA, StringRef RS, StringRef SS, StringRef SOS, StringRef AOS, bool LE, const DWARFUnitSectionBase &UnitSection)
 
virtual ~DWARFUnit ()
 
DWARFContextgetContext () const
 
StringRef getStringSection () const
 
StringRef getStringOffsetSection () const
 
void setAddrOffsetSection (StringRef AOS, uint32_t Base)
 
void setRangesSection (StringRef RS, uint32_t Base)
 
bool getAddrOffsetSectionItem (uint32_t Index, uint64_t &Result) const
 
bool getStringOffsetSectionItem (uint32_t Index, uint32_t &Result) const
 
DataExtractor getDebugInfoExtractor () const
 
DataExtractor getStringExtractor () const
 
const RelocAddrMapgetRelocMap () const
 
bool extract (DataExtractor debug_info, uint32_t *offset_ptr)
 
bool extractRangeList (uint32_t RangeListOffset, DWARFDebugRangeList &RangeList) const
 extractRangeList - extracts the range list referenced by this compile unit from .debug_ranges section. More...
 
void clear ()
 
uint32_t getOffset () const
 
uint32_t getNextUnitOffset () const
 
uint32_t getLength () const
 
uint16_t getVersion () const
 
const
DWARFAbbreviationDeclarationSet
getAbbreviations () const
 
uint8_t getAddressByteSize () const
 
uint64_t getBaseAddress () const
 
void setBaseAddress (uint64_t base_addr)
 
const DWARFDebugInfoEntryMinimalgetUnitDIE (bool ExtractUnitDIEOnly=true)
 
const char * getCompilationDir ()
 
uint64_t getDWOId ()
 
void collectAddressRanges (DWARFAddressRangesVector &CURanges)
 
DWARFDebugInfoEntryInlinedChain getInlinedChainForAddress (uint64_t Address)
 getInlinedChainForAddress - fetches inlined chain for a given address. More...
 
const DWARFUnitSectionBasegetUnitSection () const
 getUnitSection - Return the DWARFUnitSection containing this unit. More...
 
unsigned getNumDIEs ()
 Returns the number of DIEs in the unit. More...
 
uint32_t getDIEIndex (const DWARFDebugInfoEntryMinimal *DIE)
 Return the index of a DIE inside the unit's DIE vector. More...
 
const DWARFDebugInfoEntryMinimalgetDIEAtIndex (unsigned Index) const
 Return the DIE object at the given index. More...
 
const DWARFDebugInfoEntryMinimalgetDIEForOffset (uint32_t Offset) const
 Return the DIE object for a given offset inside the unit's DIE vector. More...
 

Protected Member Functions

bool extractImpl (DataExtractor debug_info, uint32_t *offset_ptr) override
 

Detailed Description

Definition at line 17 of file DWARFTypeUnit.h.

Constructor & Destructor Documentation

llvm::DWARFTypeUnit::DWARFTypeUnit ( DWARFContext Context,
const DWARFSection Section,
const DWARFDebugAbbrev DA,
StringRef  RS,
StringRef  SS,
StringRef  SOS,
StringRef  AOS,
bool  LE,
const DWARFUnitSectionBase UnitSection 
)
inline

Definition at line 22 of file DWARFTypeUnit.h.

Member Function Documentation

void DWARFTypeUnit::dump ( raw_ostream OS)
bool DWARFTypeUnit::extractImpl ( DataExtractor  debug_info,
uint32_t *  offset_ptr 
)
overrideprotectedvirtual
uint32_t llvm::DWARFTypeUnit::getHeaderSize ( ) const
inlineoverridevirtual

Size in bytes of the unit header.

Reimplemented from llvm::DWARFUnit.

Definition at line 27 of file DWARFTypeUnit.h.

References llvm::DWARFUnit::getHeaderSize().


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