LLVM  3.7.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
 
const DWARFSectiongetLineSection () override
 
StringRef getStringSection () override
 
StringRef getRangeSection () 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
 
- Public Member Functions inherited from llvm::DWARFContext
 DWARFContext ()
 
void dump (raw_ostream &OS, DIDumpType DumpType=DIDT_All) 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 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 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
DIContextKind getKind () const
 
 DIContext (DIContextKind K)
 
virtual ~DIContext ()
 

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
< std::vector
< DWARFUnitSection
< DWARFTypeUnit > >::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 222 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 285 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getAbbrevSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 264 of file DWARFContext.h.

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

Implements llvm::DWARFContext.

Definition at line 261 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getAddrSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 293 of file DWARFContext.h.

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

Implements llvm::DWARFContext.

Definition at line 277 of file DWARFContext.h.

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

Implements llvm::DWARFContext.

Definition at line 275 of file DWARFContext.h.

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

Implements llvm::DWARFContext.

Definition at line 278 of file DWARFContext.h.

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

Implements llvm::DWARFContext.

Definition at line 276 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getARangeSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 266 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getDebugFrameSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 267 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getGnuPubNamesSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 273 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getGnuPubTypesSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 274 of file DWARFContext.h.

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

Implements llvm::DWARFContext.

Definition at line 281 of file DWARFContext.h.

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

Implements llvm::DWARFContext.

Definition at line 262 of file DWARFContext.h.

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

Implements llvm::DWARFContext.

Definition at line 286 of file DWARFContext.h.

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

Implements llvm::DWARFContext.

Definition at line 268 of file DWARFContext.h.

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

Implements llvm::DWARFContext.

Definition at line 287 of file DWARFContext.h.

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

Implements llvm::DWARFContext.

Definition at line 265 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getPubNamesSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 271 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getPubTypesSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 272 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getRangeDWOSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 292 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getRangeSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 270 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getStringDWOSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 288 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getStringOffsetDWOSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 289 of file DWARFContext.h.

StringRef llvm::DWARFContextInMemory::getStringSection ( )
inlineoverridevirtual

Implements llvm::DWARFContext.

Definition at line 269 of file DWARFContext.h.

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

Implements llvm::DWARFContext.

Definition at line 282 of file DWARFContext.h.

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

Implements llvm::DWARFContext.

Definition at line 263 of file DWARFContext.h.

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

Implements llvm::DWARFContext.

Definition at line 260 of file DWARFContext.h.


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