LLVM  6.0.0svn
Classes | Public Member Functions | Public Attributes | List of all members
llvm::DWARFAbbreviationDeclaration::AttributeSpec Struct Reference

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

Collaboration diagram for llvm::DWARFAbbreviationDeclaration::AttributeSpec:
Collaboration graph
[legend]

Public Member Functions

 AttributeSpec (dwarf::Attribute A, dwarf::Form F, int64_t Value)
 
 AttributeSpec (dwarf::Attribute A, dwarf::Form F, Optional< uint8_t > ByteSize)
 
bool isImplicitConst () const
 
int64_t getImplicitConstValue () const
 
Optional< int64_t > getByteSize (const DWARFUnit &U) const
 Get the fixed byte size of this Form if possible. More...
 

Public Attributes

dwarf::Attribute Attr
 
dwarf::Form Form
 
ByteSizeStorage ByteSize
 
int64_t Value
 

Detailed Description

Definition at line 30 of file DWARFAbbreviationDeclaration.h.

Constructor & Destructor Documentation

◆ AttributeSpec() [1/2]

llvm::DWARFAbbreviationDeclaration::AttributeSpec::AttributeSpec ( dwarf::Attribute  A,
dwarf::Form  F,
int64_t  Value 
)
inline

Definition at line 31 of file DWARFAbbreviationDeclaration.h.

References assert(), and isImplicitConst().

◆ AttributeSpec() [2/2]

llvm::DWARFAbbreviationDeclaration::AttributeSpec::AttributeSpec ( dwarf::Attribute  A,
dwarf::Form  F,
Optional< uint8_t >  ByteSize 
)
inline

Member Function Documentation

◆ getByteSize()

Optional< int64_t > DWARFAbbreviationDeclaration::AttributeSpec::getByteSize ( const DWARFUnit U) const

Get the fixed byte size of this Form if possible.

This function might use the DWARFUnit to calculate the size of the Form, like for DW_AT_address and DW_AT_ref_addr, so this isn't just an accessor for the ByteSize member.

Definition at line 213 of file DWARFAbbreviationDeclaration.cpp.

References llvm::DWARFFormValue::getFixedByteSize(), and llvm::DWARFUnit::getFormParams().

Referenced by llvm::DWARFAbbreviationDeclaration::getAttrByIndex(), and getImplicitConstValue().

◆ getImplicitConstValue()

int64_t llvm::DWARFAbbreviationDeclaration::AttributeSpec::getImplicitConstValue ( ) const
inline

Definition at line 74 of file DWARFAbbreviationDeclaration.h.

References assert(), getByteSize(), isImplicitConst(), and Value.

◆ isImplicitConst()

bool llvm::DWARFAbbreviationDeclaration::AttributeSpec::isImplicitConst ( ) const
inline

Definition at line 70 of file DWARFAbbreviationDeclaration.h.

Referenced by AttributeSpec(), and getImplicitConstValue().

Member Data Documentation

◆ Attr

dwarf::Attribute llvm::DWARFAbbreviationDeclaration::AttributeSpec::Attr

◆ ByteSize

ByteSizeStorage llvm::DWARFAbbreviationDeclaration::AttributeSpec::ByteSize

Definition at line 65 of file DWARFAbbreviationDeclaration.h.

Referenced by AttributeSpec().

◆ Form

dwarf::Form llvm::DWARFAbbreviationDeclaration::AttributeSpec::Form

Definition at line 44 of file DWARFAbbreviationDeclaration.h.

◆ Value

int64_t llvm::DWARFAbbreviationDeclaration::AttributeSpec::Value

Definition at line 66 of file DWARFAbbreviationDeclaration.h.

Referenced by getImplicitConstValue().


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