struct DWARFDebugMacro::MacroHeader
Declaration
struct DWARFDebugMacro::MacroHeader { /* full declaration omitted */ };
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugMacro.h:28
Member Variables
- public uint16_t Version = 0
- Macro version information number.
- public uint8_t Flags = 0
- The bits of the flags field are interpreted as a set of flags, some of which may indicate that additional fields follow. The following flags, beginning with the least significant bit, are defined: offset_size_flag: If the offset_size_flag is zero, the header is for a 32-bit DWARF format macro section and all offsets are 4 bytes long; if it is one, the header is for a 64-bit DWARF format macro section and all offsets are 8 bytes long. debug_line_offset_flag: If the debug_line_offset_flag is one, the debug_line_offset field (see below) is present. If zero, that field is omitted. opcode_operands_table_flag: If the opcode_operands_table_flag is one, the opcode_operands_table field (see below) is present. If zero, that field is omitted.
- public uint64_t DebugLineOffset
- debug_line_offset An offset in the .debug_line section of the beginning of the line number information in the containing compilation unit, encoded as a 4-byte offset for a 32-bit DWARF format macro section and an 8-byte offset for a 64-bit DWARF format macro section.
Method Overview
- public void dumpMacroHeader(llvm::raw_ostream & OS) const
- public dwarf::DwarfFormat getDwarfFormat() const
- public uint8_t getOffsetByteSize() const
- public llvm::Error parseMacroHeader(llvm::DWARFDataExtractor Data, uint64_t * Offset)
Methods
¶void dumpMacroHeader(llvm::raw_ostream& OS) const
void dumpMacroHeader(llvm::raw_ostream& OS) const
Description
Print the macro header from the debug_macro section.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugMacro.h:56
Parameters
¶dwarf::DwarfFormat getDwarfFormat() const
dwarf::DwarfFormat getDwarfFormat() const
Description
Get the DWARF format according to the flags.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugMacro.h:62
¶uint8_t getOffsetByteSize() const
uint8_t getOffsetByteSize() const
Description
Get the size of a reference according to the DWARF format.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugMacro.h:65
¶llvm::Error parseMacroHeader(
llvm::DWARFDataExtractor Data,
uint64_t* Offset)
llvm::Error parseMacroHeader(
llvm::DWARFDataExtractor Data,
uint64_t* Offset)
Description
Parse the debug_macro header.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugMacro.h:59
Parameters
- llvm::DWARFDataExtractor Data
- uint64_t* Offset