LLVM  4.0.0
Public Member Functions | List of all members
llvm::DWARFContextInMemory Class Reference

DWARFContextInMemory is the simplest possible implementation of a DWARFContext. More...

#include <DWARFContext.h>

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

Public Member Functions

 DWARFContextInMemory (const object::ObjectFile &Obj, const LoadedObjectInfo *L=nullptr)
 
bool isLittleEndian () const override
 
uint8_t getAddressSize () const override
 
const DWARFSectiongetInfoSection () override
 
const TypeSectionMapgetTypesSections () override
 
StringRef getAbbrevSection () override
 
const DWARFSectiongetLocSection () override
 
StringRef getARangeSection () override
 
StringRef getDebugFrameSection () override
 
StringRef getEHFrameSection () override
 
const DWARFSectiongetLineSection () override
 
StringRef getStringSection () override
 
StringRef getRangeSection () override
 
StringRef getMacinfoSection () override
 
StringRef getPubNamesSection () override
 
StringRef getPubTypesSection () override
 
StringRef getGnuPubNamesSection () override
 
StringRef getGnuPubTypesSection () override
 
const DWARFSectiongetAppleNamesSection () override
 
const DWARFSectiongetAppleTypesSection () override
 
const DWARFSectiongetAppleNamespacesSection () override
 
const DWARFSectiongetAppleObjCSection () override
 
const DWARFSectiongetInfoDWOSection () override
 
const TypeSectionMapgetTypesDWOSections () override
 
StringRef getAbbrevDWOSection () override
 
const DWARFSectiongetLineDWOSection () override
 
const DWARFSectiongetLocDWOSection () override
 
StringRef getStringDWOSection () override
 
StringRef getStringOffsetDWOSection () override
 
StringRef getRangeDWOSection () override
 
StringRef getAddrSection () override
 
StringRef getCUIndexSection () override
 
StringRef getGdbIndexSection () override
 
StringRef getTUIndexSection () override
 
- Public Member Functions inherited from llvm::DWARFContext
 DWARFContext ()
 
 DWARFContext (DWARFContext &)=delete
 
DWARFContextoperator= (DWARFContext &)=delete
 
void dump (raw_ostream &OS, DIDumpType DumpType=DIDT_All, bool DumpEH=false, bool SummarizeTypes=false) override
 
cu_iterator_range compile_units ()
 Get compile units in this context. More...
 
tu_section_iterator_range type_unit_sections ()
 Get type units in this context. More...
 
cu_iterator_range dwo_compile_units ()
 Get compile units in the DWO context. More...
 
tu_section_iterator_range dwo_type_unit_sections ()
 Get type units in the DWO context. More...
 
unsigned getNumCompileUnits ()
 Get the number of compile units in this context. More...
 
unsigned getNumTypeUnits ()
 Get the number of compile units in this context. More...
 
unsigned getNumDWOCompileUnits ()
 Get the number of compile units in the DWO context. More...
 
unsigned getNumDWOTypeUnits ()
 Get the number of compile units in the DWO context. More...
 
DWARFCompileUnitgetCompileUnitAtIndex (unsigned index)
 Get the compile unit at the specified index for this compile unit. More...
 
DWARFCompileUnitgetDWOCompileUnitAtIndex (unsigned index)
 Get the compile unit at the specified index for the DWO compile units. More...
 
const DWARFUnitIndexgetCUIndex ()
 
DWARFGdbIndexgetGdbIndex ()
 
const DWARFUnitIndexgetTUIndex ()
 
const DWARFDebugAbbrevgetDebugAbbrev ()
 Get a pointer to the parsed DebugAbbrev object. More...
 
const DWARFDebugLocgetDebugLoc ()
 Get a pointer to the parsed DebugLoc object. More...
 
const DWARFDebugAbbrevgetDebugAbbrevDWO ()
 Get a pointer to the parsed dwo abbreviations object. More...
 
const DWARFDebugLocDWOgetDebugLocDWO ()
 Get a pointer to the parsed DebugLoc object. More...
 
const DWARFDebugArangesgetDebugAranges ()
 Get a pointer to the parsed DebugAranges object. More...
 
const DWARFDebugFramegetDebugFrame ()
 Get a pointer to the parsed frame information object. More...
 
const DWARFDebugFramegetEHFrame ()
 Get a pointer to the parsed eh frame information object. More...
 
const DWARFDebugMacrogetDebugMacro ()
 Get a pointer to the parsed DebugMacro object. More...
 
const DWARFDebugLine::LineTablegetLineTableForUnit (DWARFUnit *cu)
 Get a pointer to a parsed line table corresponding to a compile unit. More...
 
DILineInfo getLineInfoForAddress (uint64_t Address, DILineInfoSpecifier Specifier=DILineInfoSpecifier()) override
 
DILineInfoTable getLineInfoForAddressRange (uint64_t Address, uint64_t Size, DILineInfoSpecifier Specifier=DILineInfoSpecifier()) override
 
DIInliningInfo getInliningInfoForAddress (uint64_t Address, DILineInfoSpecifier Specifier=DILineInfoSpecifier()) override
 
- Public Member Functions inherited from llvm::DIContext
 DIContext (DIContextKind K)
 
virtual ~DIContext ()=default
 
DIContextKind getKind () const
 

Additional Inherited Members

- Public Types inherited from llvm::DWARFContext
typedef DWARFUnitSection
< DWARFCompileUnit >
::iterator_range 
cu_iterator_range
 
typedef DWARFUnitSection
< DWARFTypeUnit >
::iterator_range 
tu_iterator_range
 
typedef iterator_range
< decltype(TUs)::iterator > 
tu_section_iterator_range
 
typedef MapVector
< object::SectionRef,
DWARFSection, std::map
< object::SectionRef, unsigned > > 
TypeSectionMap
 
- Public Types inherited from llvm::DIContext
enum  DIContextKind { CK_DWARF, CK_PDB }
 
- Static Public Member Functions inherited from llvm::DWARFContext
static bool classof (const DIContext *DICtx)
 
static bool isSupportedVersion (unsigned version)
 

Detailed Description

DWARFContextInMemory is the simplest possible implementation of a DWARFContext.

It assumes all content is available in memory and stores pointers to it.

Definition at line 255 of file DWARFContext.h.

Constructor & Destructor Documentation

DWARFContextInMemory::DWARFContextInMemory ( const object::ObjectFile Obj,
const LoadedObjectInfo L = nullptr 
)

Member Function Documentation

StringRef llvm::DWARFContextInMemory::getAbbrevDWOSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 327 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getAbbrevSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 304 of file DWARFContext.h.

uint8_t llvm::DWARFContextInMemory::getAddressSize ( ) const
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 301 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getAddrSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 335 of file DWARFContext.h.

const DWARFSection& llvm::DWARFContextInMemory::getAppleNamespacesSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 319 of file DWARFContext.h.

const DWARFSection& llvm::DWARFContextInMemory::getAppleNamesSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 317 of file DWARFContext.h.

const DWARFSection& llvm::DWARFContextInMemory::getAppleObjCSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 320 of file DWARFContext.h.

const DWARFSection& llvm::DWARFContextInMemory::getAppleTypesSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 318 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getARangeSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 306 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getCUIndexSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 338 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getDebugFrameSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 307 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getEHFrameSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 308 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getGdbIndexSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 339 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getGnuPubNamesSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 315 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getGnuPubTypesSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 316 of file DWARFContext.h.

const DWARFSection& llvm::DWARFContextInMemory::getInfoDWOSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 323 of file DWARFContext.h.

const DWARFSection& llvm::DWARFContextInMemory::getInfoSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 302 of file DWARFContext.h.

const DWARFSection& llvm::DWARFContextInMemory::getLineDWOSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 328 of file DWARFContext.h.

const DWARFSection& llvm::DWARFContextInMemory::getLineSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 309 of file DWARFContext.h.

const DWARFSection& llvm::DWARFContextInMemory::getLocDWOSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 329 of file DWARFContext.h.

const DWARFSection& llvm::DWARFContextInMemory::getLocSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 305 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getMacinfoSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 312 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getPubNamesSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 313 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getPubTypesSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 314 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getRangeDWOSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 334 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getRangeSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 311 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getStringDWOSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 330 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getStringOffsetDWOSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 331 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getStringSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 310 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getTUIndexSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 340 of file DWARFContext.h.

const TypeSectionMap& llvm::DWARFContextInMemory::getTypesDWOSections ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 324 of file DWARFContext.h.

const TypeSectionMap& llvm::DWARFContextInMemory::getTypesSections ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 303 of file DWARFContext.h.

bool llvm::DWARFContextInMemory::isLittleEndian ( ) const
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 300 of file DWARFContext.h.


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