Lines Matching refs:ELFYAML
20 ELFYAML::Section::~Section() {} in ~Section()
25 ScalarEnumerationTraits<ELFYAML::ELF_ET>::enumeration(IO &IO, in enumeration()
26 ELFYAML::ELF_ET &Value) { in enumeration()
38 ScalarEnumerationTraits<ELFYAML::ELF_EM>::enumeration(IO &IO, in enumeration()
39 ELFYAML::ELF_EM &Value) { in enumeration()
201 void ScalarEnumerationTraits<ELFYAML::ELF_ELFCLASS>::enumeration( in enumeration()
202 IO &IO, ELFYAML::ELF_ELFCLASS &Value) { in enumeration()
211 void ScalarEnumerationTraits<ELFYAML::ELF_ELFDATA>::enumeration( in enumeration()
212 IO &IO, ELFYAML::ELF_ELFDATA &Value) { in enumeration()
221 void ScalarEnumerationTraits<ELFYAML::ELF_ELFOSABI>::enumeration( in enumeration()
222 IO &IO, ELFYAML::ELF_ELFOSABI &Value) { in enumeration()
250 void ScalarBitSetTraits<ELFYAML::ELF_EF>::bitset(IO &IO, in bitset()
251 ELFYAML::ELF_EF &Value) { in bitset()
252 const auto *Object = static_cast<ELFYAML::Object *>(IO.getContext()); in bitset()
351 void ScalarEnumerationTraits<ELFYAML::ELF_SHT>::enumeration( in enumeration()
352 IO &IO, ELFYAML::ELF_SHT &Value) { in enumeration()
353 const auto *Object = static_cast<ELFYAML::Object *>(IO.getContext()); in enumeration()
408 void ScalarBitSetTraits<ELFYAML::ELF_SHF>::bitset(IO &IO, in bitset()
409 ELFYAML::ELF_SHF &Value) { in bitset()
410 const auto *Object = static_cast<ELFYAML::Object *>(IO.getContext()); in bitset()
453 void ScalarEnumerationTraits<ELFYAML::ELF_STT>::enumeration( in enumeration()
454 IO &IO, ELFYAML::ELF_STT &Value) { in enumeration()
467 void ScalarEnumerationTraits<ELFYAML::ELF_STV>::enumeration( in enumeration()
468 IO &IO, ELFYAML::ELF_STV &Value) { in enumeration()
477 void ScalarBitSetTraits<ELFYAML::ELF_STO>::bitset(IO &IO, in bitset()
478 ELFYAML::ELF_STO &Value) { in bitset()
479 const auto *Object = static_cast<ELFYAML::Object *>(IO.getContext()); in bitset()
496 void ScalarEnumerationTraits<ELFYAML::ELF_RSS>::enumeration( in enumeration()
497 IO &IO, ELFYAML::ELF_RSS &Value) { in enumeration()
506 void ScalarEnumerationTraits<ELFYAML::ELF_REL>::enumeration( in enumeration()
507 IO &IO, ELFYAML::ELF_REL &Value) { in enumeration()
508 const auto *Object = static_cast<ELFYAML::Object *>(IO.getContext()); in enumeration()
543 void ScalarEnumerationTraits<ELFYAML::MIPS_AFL_REG>::enumeration( in enumeration()
544 IO &IO, ELFYAML::MIPS_AFL_REG &Value) { in enumeration()
553 void ScalarEnumerationTraits<ELFYAML::MIPS_ABI_FP>::enumeration( in enumeration()
554 IO &IO, ELFYAML::MIPS_ABI_FP &Value) { in enumeration()
567 void ScalarEnumerationTraits<ELFYAML::MIPS_AFL_EXT>::enumeration( in enumeration()
568 IO &IO, ELFYAML::MIPS_AFL_EXT &Value) { in enumeration()
593 void ScalarEnumerationTraits<ELFYAML::MIPS_ISA>::enumeration( in enumeration()
594 IO &IO, ELFYAML::MIPS_ISA &Value) { in enumeration()
604 void ScalarBitSetTraits<ELFYAML::MIPS_AFL_ASE>::bitset( in bitset()
605 IO &IO, ELFYAML::MIPS_AFL_ASE &Value) { in bitset()
623 void ScalarBitSetTraits<ELFYAML::MIPS_AFL_FLAGS1>::bitset( in bitset()
624 IO &IO, ELFYAML::MIPS_AFL_FLAGS1 &Value) { in bitset()
630 void MappingTraits<ELFYAML::FileHeader>::mapping(IO &IO, in mapping()
631 ELFYAML::FileHeader &FileHdr) { in mapping()
634 IO.mapOptional("OSABI", FileHdr.OSABI, ELFYAML::ELF_ELFOSABI(0)); in mapping()
637 IO.mapOptional("Flags", FileHdr.Flags, ELFYAML::ELF_EF(0)); in mapping()
644 : Visibility(ELFYAML::ELF_STV(0)), Other(ELFYAML::ELF_STO(0)) {} in NormalizedOther()
650 ELFYAML::ELF_STV Visibility;
651 ELFYAML::ELF_STO Other;
655 void MappingTraits<ELFYAML::Symbol>::mapping(IO &IO, ELFYAML::Symbol &Symbol) { in mapping()
657 IO.mapOptional("Type", Symbol.Type, ELFYAML::ELF_STT(0)); in mapping()
663 IO.mapOptional("Visibility", Keys->Visibility, ELFYAML::ELF_STV(0)); in mapping()
664 IO.mapOptional("Other", Keys->Other, ELFYAML::ELF_STO(0)); in mapping()
667 void MappingTraits<ELFYAML::LocalGlobalWeakSymbols>::mapping( in mapping()
668 IO &IO, ELFYAML::LocalGlobalWeakSymbols &Symbols) { in mapping()
674 static void commonSectionMapping(IO &IO, ELFYAML::Section &Section) { in commonSectionMapping()
677 IO.mapOptional("Flags", Section.Flags, ELFYAML::ELF_SHF(0)); in commonSectionMapping()
684 static void sectionMapping(IO &IO, ELFYAML::RawContentSection &Section) { in sectionMapping()
690 static void sectionMapping(IO &IO, ELFYAML::NoBitsSection &Section) { in sectionMapping()
695 static void sectionMapping(IO &IO, ELFYAML::RelocationSection &Section) { in sectionMapping()
700 static void groupSectionMapping(IO &IO, ELFYAML::Group &group) { in groupSectionMapping()
705 void MappingTraits<ELFYAML::SectionOrType>::mapping( in mapping()
706 IO &IO, ELFYAML::SectionOrType §ionOrType) { in mapping()
710 static void sectionMapping(IO &IO, ELFYAML::MipsABIFlags &Section) { in sectionMapping()
716 ELFYAML::MIPS_AFL_EXT(Mips::AFL_EXT_NONE)); in sectionMapping()
717 IO.mapOptional("ASEs", Section.ASEs, ELFYAML::MIPS_AFL_ASE(0)); in sectionMapping()
719 ELFYAML::MIPS_ABI_FP(Mips::Val_GNU_MIPS_ABI_FP_ANY)); in sectionMapping()
721 ELFYAML::MIPS_AFL_REG(Mips::AFL_REG_NONE)); in sectionMapping()
723 ELFYAML::MIPS_AFL_REG(Mips::AFL_REG_NONE)); in sectionMapping()
725 ELFYAML::MIPS_AFL_REG(Mips::AFL_REG_NONE)); in sectionMapping()
726 IO.mapOptional("Flags1", Section.Flags1, ELFYAML::MIPS_AFL_FLAGS1(0)); in sectionMapping()
730 void MappingTraits<std::unique_ptr<ELFYAML::Section>>::mapping( in mapping()
731 IO &IO, std::unique_ptr<ELFYAML::Section> &Section) { in mapping()
732 ELFYAML::ELF_SHT sectionType; in mapping()
742 Section.reset(new ELFYAML::RelocationSection()); in mapping()
743 sectionMapping(IO, *cast<ELFYAML::RelocationSection>(Section.get())); in mapping()
747 Section.reset(new ELFYAML::Group()); in mapping()
748 groupSectionMapping(IO, *cast<ELFYAML::Group>(Section.get())); in mapping()
752 Section.reset(new ELFYAML::NoBitsSection()); in mapping()
753 sectionMapping(IO, *cast<ELFYAML::NoBitsSection>(Section.get())); in mapping()
757 Section.reset(new ELFYAML::MipsABIFlags()); in mapping()
758 sectionMapping(IO, *cast<ELFYAML::MipsABIFlags>(Section.get())); in mapping()
762 Section.reset(new ELFYAML::RawContentSection()); in mapping()
763 sectionMapping(IO, *cast<ELFYAML::RawContentSection>(Section.get())); in mapping()
767 StringRef MappingTraits<std::unique_ptr<ELFYAML::Section>>::validate( in validate()
768 IO &io, std::unique_ptr<ELFYAML::Section> &Section) { in validate()
769 const auto *RawSection = dyn_cast<ELFYAML::RawContentSection>(Section.get()); in validate()
778 : Type(ELFYAML::ELF_REL(ELF::R_MIPS_NONE)), in NormalizedMips64RelType()
779 Type2(ELFYAML::ELF_REL(ELF::R_MIPS_NONE)), in NormalizedMips64RelType()
780 Type3(ELFYAML::ELF_REL(ELF::R_MIPS_NONE)), in NormalizedMips64RelType()
781 SpecSym(ELFYAML::ELF_REL(ELF::RSS_UNDEF)) {} in NormalizedMips64RelType()
782 NormalizedMips64RelType(IO &, ELFYAML::ELF_REL Original) in NormalizedMips64RelType()
786 ELFYAML::ELF_REL denormalize(IO &) { in denormalize()
787 ELFYAML::ELF_REL Res = Type | Type2 << 8 | Type3 << 16 | SpecSym << 24; in denormalize()
791 ELFYAML::ELF_REL Type;
792 ELFYAML::ELF_REL Type2;
793 ELFYAML::ELF_REL Type3;
794 ELFYAML::ELF_RSS SpecSym;
798 void MappingTraits<ELFYAML::Relocation>::mapping(IO &IO, in mapping()
799 ELFYAML::Relocation &Rel) { in mapping()
800 const auto *Object = static_cast<ELFYAML::Object *>(IO.getContext()); in mapping()
806 if (Object->Header.Machine == ELFYAML::ELF_EM(ELF::EM_MIPS) && in mapping()
807 Object->Header.Class == ELFYAML::ELF_ELFCLASS(ELF::ELFCLASS64)) { in mapping()
808 MappingNormalization<NormalizedMips64RelType, ELFYAML::ELF_REL> Key( in mapping()
811 IO.mapOptional("Type2", Key->Type2, ELFYAML::ELF_REL(ELF::R_MIPS_NONE)); in mapping()
812 IO.mapOptional("Type3", Key->Type3, ELFYAML::ELF_REL(ELF::R_MIPS_NONE)); in mapping()
813 IO.mapOptional("SpecSym", Key->SpecSym, ELFYAML::ELF_RSS(ELF::RSS_UNDEF)); in mapping()
820 void MappingTraits<ELFYAML::Object>::mapping(IO &IO, ELFYAML::Object &Object) { in mapping()