llvm::yaml::yaml2elf

Write the ELF object described by Doc as a binary object to Out.

Synopsis

Declared in <llvm/ObjectYAML/yaml2obj.h>

bool
yaml2elf(
    ELFYAML::Object& Doc,
    raw_ostream& Out,
    ErrorHandler EH,
    uint64_t MaxSize);

Return Value

True on success, false if an error was reported via EH.

Parameters

NameDescription
DocParsed YAML description of an ELF object.
OutOutput stream that receives the binary object.
EHHandler invoked with a message if conversion fails.
MaxSizeUpper bound on the size of the generated object.