Home | History | Annotate | Download | only in yaml2obj

Lines Matching refs:ELFYAML

19 #include "llvm/ObjectYAML/ELFYAML.h"
115 const ELFYAML::Object &Doc;
119 const std::vector<ELFYAML::Symbol> &Symbols);
128 void addSymbols(const std::vector<ELFYAML::Symbol> &Symbols,
131 const ELFYAML::RawContentSection &Section,
134 const ELFYAML::RelocationSection &Section,
136 bool writeSectionContent(Elf_Shdr &SHeader, const ELFYAML::Group &Group,
139 const ELFYAML::MipsABIFlags &Section,
151 ELFState(const ELFYAML::Object &D) : Doc(D) {}
154 static int writeELF(raw_ostream &OS, const ELFYAML::Object &Doc);
216 if (auto S = dyn_cast<ELFYAML::RawContentSection>(Sec.get()))
218 else if (auto S = dyn_cast<ELFYAML::RelocationSection>(Sec.get())) {
235 } else if (auto S = dyn_cast<ELFYAML::Group>(Sec.get())) {
245 } else if (auto S = dyn_cast<ELFYAML::MipsABIFlags>(Sec.get())) {
248 } else if (auto S = dyn_cast<ELFYAML::NoBitsSection>(Sec.get())) {
315 void ELFState<ELFT>::addSymbols(const std::vector<ELFYAML::Symbol> &Symbols,
343 const ELFYAML::RawContentSection &Section,
356 static bool isMips64EL(const ELFYAML::Object &Doc) {
357 return Doc.Header.Machine == ELFYAML::ELF_EM(llvm::ELF::EM_MIPS) &&
358 Doc.Header.Class == ELFYAML::ELF_ELFCLASS(ELF::ELFCLASS64) &&
359 Doc.Header.Data == ELFYAML::ELF_ELFDATA(ELF::ELFDATA2LSB);
365 const ELFYAML::RelocationSection &Section,
404 const ELFYAML::Group &Section,
434 const ELFYAML::MipsABIFlags &Section,
483 const std::vector<ELFYAML::Symbol> &Symbols) {
497 int ELFState<ELFT>::writeELF(raw_ostream &OS, const ELFYAML::Object &Doc) {
553 static bool is64Bit(const ELFYAML::Object &Doc) {
554 return Doc.Header.Class == ELFYAML::ELF_ELFCLASS(ELF::ELFCLASS64);
557 static bool isLittleEndian(const ELFYAML::Object &Doc) {
558 return Doc.Header.Data == ELFYAML::ELF_ELFDATA(ELF::ELFDATA2LSB);
561 int yaml2elf(llvm::ELFYAML::Object &Doc, raw_ostream &Out) {