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

A helper struct for DWARFFormValue methods, providing information that allows it to know 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/DebugInfo/DWARF/DWARFFormValue.h"

Collaboration diagram for llvm::DWARFFormParams:
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...
 

Public Attributes

uint16_t Version
 
uint8_t AddrSize
 
dwarf::DwarfFormat Format
 

Detailed Description

A helper struct for DWARFFormValue methods, providing information that allows it to know 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 29 of file DWARFFormValue.h.

Member Function Documentation

◆ getDwarfOffsetByteSize()

uint8_t llvm::DWARFFormParams::getDwarfOffsetByteSize ( ) const
inline

The size of a reference is determined by the DWARF 32/64-bit format.

Definition at line 44 of file DWARFFormValue.h.

References llvm::dwarf::DWARF32, llvm::dwarf::DWARF64, and llvm_unreachable.

Referenced by llvm::DWARFUnit::getDwarfOffsetByteSize(), llvm::DWARFFormValue::getFixedByteSize(), and getRefAddrByteSize().

◆ getRefAddrByteSize()

uint8_t llvm::DWARFFormParams::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 37 of file DWARFFormValue.h.

References AddrSize, and getDwarfOffsetByteSize().

Referenced by llvm::DWARFFormValue::getFixedByteSize(), and llvm::DWARFUnit::getRefAddrByteSize().

Member Data Documentation

◆ AddrSize

uint8_t llvm::DWARFFormParams::AddrSize

◆ Format

dwarf::DwarfFormat llvm::DWARFFormParams::Format

◆ Version

uint16_t llvm::DWARFFormParams::Version

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