llvm::DWARFYAML::emitDebugSections

Parse YAMLString and emit all non-empty DWARF sections it describes.

Synopsis

Declared in <llvm/ObjectYAML/DWARFEmitter.h>

Expected<StringMap<std::unique_ptr<MemoryBuffer>>>
emitDebugSections(
    StringRef YAMLString,
    bool IsLittleEndian = sys::IsLittleEndianHost,
    bool Is64BitAddrSize = true);

Return Value

A map from section name to buffer, or an error on failure.

Parameters

NameDescription
YAMLStringYAML text describing DWARF debug sections.
IsLittleEndianWhether to emit little-endian DWARF.
Is64BitAddrSizeWhether target addresses are 64-bit.