LLVM  10.0.0svn
Public Member Functions | Public Attributes | List of all members
llvm::dwarf::FormParams Struct Reference

A helper struct providing information about the byte size of DW_FORM values that vary in size depending on the DWARF version, address byte size, or DWARF32/DWARF64. More...

#include "llvm/BinaryFormat/Dwarf.h"

Collaboration diagram for llvm::dwarf::FormParams:
Collaboration graph
[legend]

Public Member Functions

uint8_t getRefAddrByteSize () const
 The definition of the size of form DW_FORM_ref_addr depends on the version. More...
 
uint8_t getDwarfOffsetByteSize () const
 The size of a reference is determined by the DWARF 32/64-bit format. More...
 
 operator bool () const
 

Public Attributes

uint16_t Version
 
uint8_t AddrSize
 
DwarfFormat Format
 

Detailed Description

A helper struct providing information about the byte size of DW_FORM values that vary in size depending on the DWARF version, address byte size, or DWARF32/DWARF64.

Definition at line 488 of file Dwarf.h.

Member Function Documentation

◆ getDwarfOffsetByteSize()

uint8_t llvm::dwarf::FormParams::getDwarfOffsetByteSize ( ) const
inline

◆ getRefAddrByteSize()

uint8_t llvm::dwarf::FormParams::getRefAddrByteSize ( ) const
inline

The definition of the size of form DW_FORM_ref_addr depends on the version.

In DWARF v2 it's the size of an address; after that, it's the size of a reference.

Definition at line 496 of file Dwarf.h.

References AddrSize, and getDwarfOffsetByteSize().

Referenced by llvm::DWARFFormValue::extractValue(), llvm::dwarf::getFixedFormByteSize(), and llvm::DWARFUnitHeader::getRefAddrByteSize().

◆ operator bool()

llvm::dwarf::FormParams::operator bool ( ) const
inlineexplicit

Definition at line 513 of file Dwarf.h.

References AddrSize.

Member Data Documentation

◆ AddrSize

uint8_t llvm::dwarf::FormParams::AddrSize

◆ Format

DwarfFormat llvm::dwarf::FormParams::Format

◆ Version

uint16_t llvm::dwarf::FormParams::Version

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