struct DWARFDebugLine::Prologue

Declaration

struct DWARFDebugLine::Prologue { /* full declaration omitted */ };

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:63

Member Variables

public uint64_t TotalLength
The size in bytes of the statement information for this compilation unit (not including the total_length field itself).
public dwarf::FormParams FormParams
Version, address size (starting in v5), and DWARF32/64 format; these parameters affect interpretation of forms (used in the directory and file tables starting with v5).
public uint64_t PrologueLength
The number of bytes following the prologue_length field to the beginning of the first byte of the statement program itself.
public uint8_t SegSelectorSize
In v5, size in bytes of a segment selector.
public uint8_t MinInstLength
The size in bytes of the smallest target machine instruction. Statement program opcodes that alter the address register first multiply their operands by this value.
public uint8_t MaxOpsPerInst
The maximum number of individual operations that may be encoded in an instruction.
public uint8_t DefaultIsStmt
The initial value of theis_stmtregister.
public int8_t LineBase
This parameter affects the meaning of the special opcodes. See below.
public uint8_t LineRange
This parameter affects the meaning of the special opcodes. See below.
public uint8_t OpcodeBase
The number assigned to the first special opcode.
public llvm::DWARFDebugLine::ContentTypeTracker ContentTypes
This tracks which optional file format content types are present.
public std::vector<uint8_t> StandardOpcodeLengths
public std::vector<DWARFFormValue> IncludeDirectories
public std::vector<FileNameEntry> FileNames

Method Overview

Methods

Prologue()

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:64

void clear()

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:138

void dump(llvm::raw_ostream& OS,
          llvm::DIDumpOptions DumpOptions) const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:139

Parameters

llvm::raw_ostream& OS
llvm::DIDumpOptions DumpOptions

uint8_t getAddressSize() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:101

bool getFileNameByIndex(
    uint64_t FileIndex,
    llvm::StringRef CompDir,
    DILineInfoSpecifier::FileLineInfoKind Kind,
    std::string& Result,
    sys::path::Style Style =
        sys::path::Style::native) const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:133

Parameters

uint64_t FileIndex
llvm::StringRef CompDir
DILineInfoSpecifier::FileLineInfoKind Kind
std::string& Result
sys::path::Style Style = sys::path::Style::native

const llvm::DWARFDebugLine::FileNameEntry&
getFileNameEntry(uint64_t Index) const

Description

Get DWARF-version aware access to the file name entry at the provided index.

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:128

Parameters

uint64_t Index

const dwarf::FormParams getFormParams() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:99

uint32_t getLength() const

Description

Length of the prologue in bytes.

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:111

int32_t getMaxLineIncrementForSpecialOpcode()
    const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:121

uint32_t getStatementTableLength() const

Description

Length of the line table data in bytes (not including the prologue).

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:117

uint16_t getVersion() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:100

bool hasFileAtIndex(uint64_t FileIndex) const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:130

Parameters

uint64_t FileIndex

bool isDWARF64() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:102

llvm::Error parse(
    const llvm::DWARFDataExtractor& DebugLineData,
    uint64_t* OffsetPtr,
    const llvm::DWARFContext& Ctx,
    const llvm::DWARFUnit* U = nullptr)

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:140

Parameters

const llvm::DWARFDataExtractor& DebugLineData
uint64_t* OffsetPtr
const llvm::DWARFContext& Ctx
const llvm::DWARFUnit* U = nullptr

uint32_t sizeofPrologueLength() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:106

uint32_t sizeofTotalLength() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:104

bool totalLengthIsValid() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:108