LLVM  4.0.0
Classes | Public Types | Public Member Functions | List of all members
llvm::DWARFAbbreviationDeclaration Class Reference

#include <DWARFAbbreviationDeclaration.h>

Classes

struct  AttributeSpec
 

Public Types

typedef SmallVector
< AttributeSpec, 8 > 
AttributeSpecVector
 
typedef iterator_range
< AttributeSpecVector::const_iterator
attr_iterator_range
 

Public Member Functions

 DWARFAbbreviationDeclaration ()
 
uint32_t getCode () const
 
dwarf::Tag getTag () const
 
bool hasChildren () const
 
attr_iterator_range attributes () const
 
dwarf::Form getFormByIndex (uint32_t idx) const
 
Optional< uint32_tfindAttributeIndex (dwarf::Attribute attr) const
 Get the index of the specified attribute. More...
 
Optional< DWARFFormValuegetAttributeValue (const uint32_t DIEOffset, const dwarf::Attribute Attr, const DWARFUnit &U) const
 Extract a DWARF form value from a DIE specified by DIE offset. More...
 
bool extract (DataExtractor Data, uint32_t *OffsetPtr)
 
void dump (raw_ostream &OS) const
 
Optional< size_t > getFixedAttributesByteSize (const DWARFUnit &U) const
 

Detailed Description

Definition at line 23 of file DWARFAbbreviationDeclaration.h.

Member Typedef Documentation

Definition at line 62 of file DWARFAbbreviationDeclaration.h.

Definition at line 53 of file DWARFAbbreviationDeclaration.h.

Constructor & Destructor Documentation

DWARFAbbreviationDeclaration::DWARFAbbreviationDeclaration ( )

Definition at line 28 of file DWARFAbbreviationDeclaration.cpp.

References clear().

Member Function Documentation

attr_iterator_range llvm::DWARFAbbreviationDeclaration::attributes ( ) const
inline
void DWARFAbbreviationDeclaration::dump ( raw_ostream OS) const
bool DWARFAbbreviationDeclaration::extract ( DataExtractor  Data,
uint32_t OffsetPtr 
)
Optional< uint32_t > DWARFAbbreviationDeclaration::findAttributeIndex ( dwarf::Attribute  attr) const

Get the index of the specified attribute.

Searches the this abbreviation declaration for the index of the specified attribute.

Parameters
attrDWARF attribute to search for.
Returns
Optional index of the attribute if found, None otherwise.

Definition at line 147 of file DWARFAbbreviationDeclaration.cpp.

References i, and llvm::None.

Optional< DWARFFormValue > DWARFAbbreviationDeclaration::getAttributeValue ( const uint32_t  DIEOffset,
const dwarf::Attribute  Attr,
const DWARFUnit U 
) const

Extract a DWARF form value from a DIE specified by DIE offset.

Extract an attribute value for a DWARFUnit given the DIE offset and the attribute.

Parameters
DIEOffsetthe DIE offset that points to the ULEB128 abbreviation code in the .debug_info data.
AttrDWARF attribute to search for.
Uthe DWARFUnit the contains the DIE.
Returns
Optional DWARF form value if the attribute was extracted.

Definition at line 155 of file DWARFAbbreviationDeclaration.cpp.

References llvm::DWARFFormValue::extractValue(), llvm::DWARFUnit::getDebugInfoExtractor(), llvm::None, Offset, llvm::DWARFFormValue::setSValue(), and llvm::DWARFFormValue::skipValue().

uint32_t llvm::DWARFAbbreviationDeclaration::getCode ( ) const
inline
Optional< size_t > DWARFAbbreviationDeclaration::getFixedAttributesByteSize ( const DWARFUnit U) const

Definition at line 214 of file DWARFAbbreviationDeclaration.cpp.

References llvm::None.

dwarf::Form llvm::DWARFAbbreviationDeclaration::getFormByIndex ( uint32_t  idx) const
inline
dwarf::Tag llvm::DWARFAbbreviationDeclaration::getTag ( ) const
inline

Definition at line 58 of file DWARFAbbreviationDeclaration.h.

Referenced by llvm::DWARFDebugInfoEntry::getTag().

bool llvm::DWARFAbbreviationDeclaration::hasChildren ( ) const
inline

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