LLVM  5.0.0
Public Member Functions | Static Public Attributes | List of all members
llvm::DWARFCompileUnit Class Reference

#include "llvm/DebugInfo/DWARF/DWARFCompileUnit.h"

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

Public Member Functions

 DWARFCompileUnit (DWARFContext &Context, const DWARFSection &Section, const DWARFDebugAbbrev *DA, const DWARFSection *RS, StringRef SS, const DWARFSection &SOS, const DWARFSection *AOS, const DWARFSection &LS, bool LE, bool IsDWO, const DWARFUnitSectionBase &UnitSection, const DWARFUnitIndex::Entry *Entry)
 
 ~DWARFCompileUnit () override
 
void dump (raw_ostream &OS, DIDumpOptions DumpOpts)
 
- Public Member Functions inherited from llvm::DWARFUnit
 DWARFUnit (DWARFContext &Context, const DWARFSection &Section, const DWARFDebugAbbrev *DA, const DWARFSection *RS, StringRef SS, const DWARFSection &SOS, const DWARFSection *AOS, const DWARFSection &LS, bool LE, bool IsDWO, const DWARFUnitSectionBase &UnitSection, const DWARFUnitIndex::Entry *IndexEntry=nullptr)
 
virtual ~DWARFUnit ()
 
DWARFContext & getContext () const
 
const DWARFSection & getLineSection () const
 
StringRef getStringSection () const
 
const DWARFSection & getStringOffsetSection () const
 
void setAddrOffsetSection (const DWARFSection *AOS, uint32_t Base)
 
void updateAddressDieMap (DWARFDie Die)
 Recursively update address to Die map. More...
 
void setRangesSection (const DWARFSection *RS, uint32_t Base)
 
bool getAddrOffsetSectionItem (uint32_t Index, uint64_t &Result) const
 
bool getStringOffsetSectionItem (uint32_t Index, uint64_t &Result) const
 
DWARFDataExtractor getDebugInfoExtractor () const
 
DataExtractor getStringExtractor () const
 
const RelocAddrMap * getRelocMap () const
 
const RelocAddrMap & getStringOffsetsRelocMap () 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
 
const DWARFFormParams & getFormParams () const
 
uint16_t getVersion () const
 
dwarf::DwarfFormat getFormat () const
 
uint8_t getAddressByteSize () const
 
uint8_t getRefAddrByteSize () const
 
uint8_t getDwarfOffsetByteSize () const
 
const
DWARFAbbreviationDeclarationSet * 
getAbbreviations () const
 
uint8_t getUnitType () const
 
uint64_t getBaseAddress () const
 
void setBaseAddress (uint64_t base_addr)
 
DWARFDie getUnitDIE (bool ExtractUnitDIEOnly=true)
 
const char * getCompilationDir ()
 
Optional< uint64_t > getDWOId ()
 
void collectAddressRanges (DWARFAddressRangesVector &CURanges)
 
void getInlinedChainForAddress (uint64_t Address, SmallVectorImpl< DWARFDie > &InlinedChain)
 getInlinedChainForAddress - fetches inlined chain for a given address. More...
 
const DWARFUnitSectionBase & getUnitSection () const
 getUnitSection - Return the DWARFUnitSection containing this unit. More...
 
unsigned getNumDIEs ()
 Returns the number of DIEs in the unit. More...
 
uint32_t getDIEIndex (const DWARFDie &D)
 Return the index of a DIE inside the unit's DIE vector. More...
 
DWARFDie getDIEAtIndex (unsigned Index)
 Return the DIE object at the given index. More...
 
DWARFDie getParent (const DWARFDebugInfoEntry *Die)
 
DWARFDie getSibling (const DWARFDebugInfoEntry *Die)
 
DWARFDie getDIEForOffset (uint32_t Offset)
 Return the DIE object for a given offset inside the unit's DIE vector. More...
 
uint32_t getLineTableOffset () const
 
die_iterator_range dies ()
 

Static Public Attributes

static const DWARFSectionKind Section = DW_SECT_INFO
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::DWARFUnit
static bool isValidUnitType (uint8_t UnitType)
 
static uint32_t getDWARF5HeaderSize (uint8_t UnitType)
 Return the number of bytes for the header of a unit of UnitType type. More...
 
- Protected Member Functions inherited from llvm::DWARFUnit
virtual bool extractImpl (DataExtractor debug_info, uint32_t *offset_ptr)
 
virtual uint32_t getHeaderSize () const
 Size in bytes of the unit header. More...
 

Detailed Description

Definition at line 18 of file DWARFCompileUnit.h.

Constructor & Destructor Documentation

llvm::DWARFCompileUnit::DWARFCompileUnit ( DWARFContext &  Context,
const DWARFSection &  Section,
const DWARFDebugAbbrev *  DA,
const DWARFSection *  RS,
StringRef  SS,
const DWARFSection &  SOS,
const DWARFSection *  AOS,
const DWARFSection &  LS,
bool  LE,
bool  IsDWO,
const DWARFUnitSectionBase &  UnitSection,
const DWARFUnitIndex::Entry *  Entry 
)
inline

Definition at line 20 of file DWARFCompileUnit.h.

DWARFCompileUnit::~DWARFCompileUnit ( )
overridedefault

Member Function Documentation

void DWARFCompileUnit::dump ( raw_ostream &  OS,
DIDumpOptions  DumpOpts 
)

Member Data Documentation

const DWARFSectionKind llvm::DWARFCompileUnit::Section = DW_SECT_INFO
static

Definition at line 34 of file DWARFCompileUnit.h.


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