struct DWARFDebugLine::Prologue

Declaration

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

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

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

  • public Prologue()
  • public void clear()
  • public void dump(llvm::raw_ostream & OS, llvm::DIDumpOptions DumpOptions) const
  • public uint8_t getAddressSize() const
  • public bool getFileNameByIndex(uint64_t FileIndex, llvm::StringRef CompDir, DILineInfoSpecifier::FileLineInfoKind Kind, std::string & Result, sys::path::Style Style = sys::path::Style::native) const
  • public const llvm::DWARFDebugLine::FileNameEntry & getFileNameEntry(uint64_t Index) const
  • public const dwarf::FormParams getFormParams() const
  • public Optional<uint64_t> getLastValidFileIndex() const
  • public uint64_t getLength() const
  • public uint16_t getVersion() const
  • public bool hasFileAtIndex(uint64_t FileIndex) const
  • public bool isDWARF64() const
  • public llvm::Error parse(llvm::DWARFDataExtractor Data, uint64_t * OffsetPtr, function_ref<void (llvm::Error)> RecoverableErrorHandler, const llvm::DWARFContext & Ctx, const llvm::DWARFUnit * U = nullptr)
  • public uint32_t sizeofPrologueLength() const
  • public uint32_t sizeofTotalLength() const
  • public bool totalLengthIsValid() const

Methods

Prologue()

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

void clear()

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

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

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

Parameters

llvm::raw_ostream& OS
llvm::DIDumpOptions DumpOptions

uint8_t getAddressSize() const

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

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:120

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:113

Parameters

uint64_t Index

const dwarf::FormParams getFormParams() const

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

Optional<uint64_t> getLastValidFileIndex() const

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

uint64_t getLength() const

Description

Length of the prologue in bytes.

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

uint16_t getVersion() const

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

bool hasFileAtIndex(uint64_t FileIndex) const

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

Parameters

uint64_t FileIndex

bool isDWARF64() const

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

llvm::Error parse(
    llvm::DWARFDataExtractor Data,
    uint64_t* OffsetPtr,
    function_ref<void(llvm::Error)>
        RecoverableErrorHandler,
    const llvm::DWARFContext& Ctx,
    const llvm::DWARFUnit* U = nullptr)

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

Parameters

llvm::DWARFDataExtractor Data
uint64_t* OffsetPtr
function_ref<void(llvm::Error)> RecoverableErrorHandler
const llvm::DWARFContext& Ctx
const llvm::DWARFUnit* U = nullptr

uint32_t sizeofPrologueLength() const

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

uint32_t sizeofTotalLength() const

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

bool totalLengthIsValid() const

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