LLVM  5.0.0
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:
[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 28 of file DWARFFormValue.h.

Member Function Documentation

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

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

Definition at line 43 of file DWARFFormValue.h.

References llvm::dwarf::DWARF32, llvm::dwarf::DWARF64, Format, and llvm_unreachable().

Referenced by llvm::DWARFUnit::getDwarfOffsetByteSize(), llvm::DWARFFormValue::getFixedByteSize(), and 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 36 of file DWARFFormValue.h.

References AddrSize, getDwarfOffsetByteSize(), and Version.

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

Member Data Documentation

uint8_t llvm::DWARFFormParams::AddrSize
dwarf::DwarfFormat llvm::DWARFFormParams::Format
uint16_t llvm::DWARFFormParams::Version

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