llvm::DWARFVerifier::verifyDebugStrOffsets

Verify the contents of a .debug_str_offsets[.dwo]section.

Synopsis

Declared in <llvm/DebugInfo/DWARF/DWARFVerifier.h>

bool
verifyDebugStrOffsets(
    std::optional<dwarf::DwarfFormat> LegacyFormat,
    StringRef SectionName,
    DWARFSection const& Section,
    StringRef StrData);

Return Value

true if the section verifies successfully, false otherwise.

Parameters

NameDescription
LegacyFormatIf set, treat the section as a single legacy contribution with this DWARF format; otherwise parse DWARF v5 headers.
SectionNameThe name of the section being verified (for diagnostics).
SectionThe string-offsets section data to verify.
StrDataThe corresponding string section contents.