struct DWARFDebugLine::ParsingState

Declaration

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

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

Member Variables

public struct LineTable* LineTable
Line table we're currently parsing.
public struct Row Row
public struct Sequence Sequence
private uint64_t LineTableOffset
private bool ReportAdvanceAddrProblem = true
private bool ReportBadLineRange = true
private function_ref<void(llvm::Error)> ErrorHandler

Method Overview

  • public ParsingState(struct LineTable * LT, uint64_t TableOffset, function_ref<void (llvm::Error)> ErrorHandler)
  • public uint64_t advanceAddr(uint64_t OperationAdvance, uint8_t Opcode, uint64_t OpcodeOffset)
  • public llvm::DWARFDebugLine::ParsingState::AddrAndAdjustedOpcode advanceAddrForOpcode(uint8_t Opcode, uint64_t OpcodeOffset)
  • public void appendRowToMatrix()
  • public llvm::DWARFDebugLine::ParsingState::AddrAndLineDelta handleSpecialOpcode(uint8_t Opcode, uint64_t OpcodeOffset)
  • public void resetRowAndSequence()

Methods

ParsingState(
    struct LineTable* LT,
    uint64_t TableOffset,
    function_ref<void(llvm::Error)> ErrorHandler)

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

Parameters

struct LineTable* LT
uint64_t TableOffset
function_ref<void(llvm::Error)> ErrorHandler

uint64_t advanceAddr(uint64_t OperationAdvance,
                     uint8_t Opcode,
                     uint64_t OpcodeOffset)

Description

Advance the address by the \p OperationAdvance value.

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

Parameters

uint64_t OperationAdvance
uint8_t Opcode
uint64_t OpcodeOffset

Returns

the amount advanced by.

llvm::DWARFDebugLine::ParsingState::
    AddrAndAdjustedOpcode
    advanceAddrForOpcode(uint8_t Opcode,
                         uint64_t OpcodeOffset)

Description

Advance the address as required by the specified \p Opcode.

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

Parameters

uint8_t Opcode
uint64_t OpcodeOffset

Returns

the amount advanced by and the calculated adjusted opcode.

void appendRowToMatrix()

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

llvm::DWARFDebugLine::ParsingState::
    AddrAndLineDelta
    handleSpecialOpcode(uint8_t Opcode,
                        uint64_t OpcodeOffset)

Description

Advance the line and address as required by the specified special \p Opcode.

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

Parameters

uint8_t Opcode
uint64_t OpcodeOffset

Returns

the address and line delta.

void resetRowAndSequence()

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