llvm::parseInfoSectionUnitHeader

Parse the unit header at the start of a .debug_info(.dwo) section.

Synopsis

Declared in <llvm/DWP/DWP.h>

Expected<InfoSectionUnitHeader>
parseInfoSectionUnitHeader(
    StringRef Info,
    bool IsLittleEndian);

Return Value

The parsed header fields, or an error if parsing fails.

Parameters

NameDescription
InfoContents of the info section to parse.
IsLittleEndianTrue if the section data is little-endian.