Lines Matching refs:Doc
242 static int writeELF(raw_ostream &OS, const ELFYAML::Object &Doc) { in writeELF() argument
247 const ELFYAML::FileHeader &Hdr = Doc.Header; in writeELF()
273 const std::vector<ELFYAML::Section> &Sections = Doc.Sections; in writeELF()
344 handleSymtabSectionHeader<ELFT>(Doc.Symbols, State, SymtabSHeader); in writeELF()
366 static bool is64Bit(const ELFYAML::Object &Doc) { in is64Bit() argument
367 return Doc.Header.Class == ELFYAML::ELF_ELFCLASS(ELF::ELFCLASS64); in is64Bit()
370 static bool isLittleEndian(const ELFYAML::Object &Doc) { in isLittleEndian() argument
371 return Doc.Header.Data == ELFYAML::ELF_ELFDATA(ELF::ELFDATA2LSB); in isLittleEndian()
376 ELFYAML::Object Doc; in yaml2elf() local
377 YIn >> Doc; in yaml2elf()
387 if (is64Bit(Doc)) { in yaml2elf()
388 if (isLittleEndian(Doc)) in yaml2elf()
389 return writeELF<LE64>(outs(), Doc); in yaml2elf()
391 return writeELF<BE64>(outs(), Doc); in yaml2elf()
393 if (isLittleEndian(Doc)) in yaml2elf()
394 return writeELF<LE32>(outs(), Doc); in yaml2elf()
396 return writeELF<BE32>(outs(), Doc); in yaml2elf()