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
- 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 uint32_t getLength() const
- public int32_t getMaxLineIncrementForSpecialOpcode() const
- public uint32_t getStatementTableLength() const
- public uint16_t getVersion() const
- public bool hasFileAtIndex(uint64_t FileIndex) const
- public bool isDWARF64() const
- public llvm::Error parse(const llvm::DWARFDataExtractor & DebugLineData, uint64_t * OffsetPtr, 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()
Prologue()
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:64
¶void clear()
void clear()
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:138
¶void dump(llvm::raw_ostream& OS,
llvm::DIDumpOptions DumpOptions) const
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
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
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
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
const dwarf::FormParams getFormParams() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:99
¶uint32_t getLength() const
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
int32_t getMaxLineIncrementForSpecialOpcode()
const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:121
¶uint32_t getStatementTableLength() const
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
uint16_t getVersion() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:100
¶bool hasFileAtIndex(uint64_t FileIndex) const
bool hasFileAtIndex(uint64_t FileIndex) const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:130
Parameters
- uint64_t FileIndex
¶bool isDWARF64() const
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)
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
uint32_t sizeofPrologueLength() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:106
¶uint32_t sizeofTotalLength() const
uint32_t sizeofTotalLength() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:104
¶bool totalLengthIsValid() const
bool totalLengthIsValid() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:108