LLVM  7.0.0svn
Public Member Functions | Public Attributes | List of all members
llvm::StrOffsetsContributionDescriptor Struct Reference

Represents a unit's contribution to the string offsets table. More...

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

Collaboration diagram for llvm::StrOffsetsContributionDescriptor:
Collaboration graph
[legend]

Public Member Functions

 StrOffsetsContributionDescriptor (uint64_t Base, uint64_t Size, uint8_t Version, dwarf::DwarfFormat Format)
 
uint8_t getVersion () const
 
dwarf::DwarfFormat getFormat () const
 
uint8_t getDwarfOffsetByteSize () const
 
Optional< StrOffsetsContributionDescriptorvalidateContributionSize (DWARFDataExtractor &DA)
 Determine whether a contribution to the string offsets table is consistent with the relevant section size and that its length is a multiple of the size of one of its entries. More...
 

Public Attributes

uint64_t Base = 0
 
uint64_t Size = 0
 
DWARFFormParams FormParams = {0, 0, dwarf::DwarfFormat::DWARF32}
 Format and version. More...
 

Detailed Description

Represents a unit's contribution to the string offsets table.

Definition at line 169 of file DWARFUnit.h.

Constructor & Destructor Documentation

◆ StrOffsetsContributionDescriptor()

llvm::StrOffsetsContributionDescriptor::StrOffsetsContributionDescriptor ( uint64_t  Base,
uint64_t  Size,
uint8_t  Version,
dwarf::DwarfFormat  Format 
)
inline

Definition at line 175 of file DWARFUnit.h.

References llvm::IndexedInstrProf::Version.

Member Function Documentation

◆ getDwarfOffsetByteSize()

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

Definition at line 181 of file DWARFUnit.h.

References llvm::DWARFFormParams::getDwarfOffsetByteSize().

◆ getFormat()

dwarf::DwarfFormat llvm::StrOffsetsContributionDescriptor::getFormat ( ) const
inline

Definition at line 180 of file DWARFUnit.h.

References llvm::DWARFFormParams::Format.

◆ getVersion()

uint8_t llvm::StrOffsetsContributionDescriptor::getVersion ( ) const
inline

Definition at line 179 of file DWARFUnit.h.

References llvm::DWARFFormParams::Version.

◆ validateContributionSize()

Optional< StrOffsetsContributionDescriptor > StrOffsetsContributionDescriptor::validateContributionSize ( DWARFDataExtractor DA)

Determine whether a contribution to the string offsets table is consistent with the relevant section size and that its length is a multiple of the size of one of its entries.

Definition at line 486 of file DWARFUnit.cpp.

References llvm::alignTo(), llvm::DWARFUnit::getDwarfOffsetByteSize(), llvm::DataExtractor::isValidOffsetForDataOfSize(), and llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Size.

Referenced by llvm::DWARFUnit::determineStringOffsetsTableContribution().

Member Data Documentation

◆ Base

uint64_t llvm::StrOffsetsContributionDescriptor::Base = 0

Definition at line 170 of file DWARFUnit.h.

Referenced by collectContributionData().

◆ FormParams

DWARFFormParams llvm::StrOffsetsContributionDescriptor::FormParams = {0, 0, dwarf::DwarfFormat::DWARF32}

Format and version.

Definition at line 173 of file DWARFUnit.h.

◆ Size

uint64_t llvm::StrOffsetsContributionDescriptor::Size = 0

Definition at line 171 of file DWARFUnit.h.

Referenced by collectContributionData().


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