diff options
Diffstat (limited to 'llvm/lib/ObjectYAML/ELFYAML.cpp')
-rw-r--r-- | llvm/lib/ObjectYAML/ELFYAML.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/llvm/lib/ObjectYAML/ELFYAML.cpp b/llvm/lib/ObjectYAML/ELFYAML.cpp index 13c0bfdbaeb..cec56771e1d 100644 --- a/llvm/lib/ObjectYAML/ELFYAML.cpp +++ b/llvm/lib/ObjectYAML/ELFYAML.cpp @@ -872,12 +872,6 @@ static void sectionMapping(IO &IO, ELFYAML::NoBitsSection &Section) { IO.mapOptional("Size", Section.Size, Hex64(0)); } -static void sectionMapping(IO &IO, ELFYAML::VerneedSection &Section) { - commonSectionMapping(IO, Section); - IO.mapRequired("Info", Section.Info); - IO.mapRequired("Dependencies", Section.VerneedV); -} - static void sectionMapping(IO &IO, ELFYAML::RelocationSection &Section) { commonSectionMapping(IO, Section); IO.mapOptional("Info", Section.RelocatableSec, StringRef()); @@ -955,11 +949,6 @@ void MappingTraits<std::unique_ptr<ELFYAML::Section>>::mapping( Section.reset(new ELFYAML::MipsABIFlags()); sectionMapping(IO, *cast<ELFYAML::MipsABIFlags>(Section.get())); break; - case ELF::SHT_GNU_verneed: - if (!IO.outputting()) - Section.reset(new ELFYAML::VerneedSection()); - sectionMapping(IO, *cast<ELFYAML::VerneedSection>(Section.get())); - break; default: if (!IO.outputting()) Section.reset(new ELFYAML::RawContentSection()); @@ -1008,25 +997,6 @@ void MappingTraits<ELFYAML::DynamicEntry>::mapping(IO &IO, IO.mapRequired("Value", Rel.Val); } -void MappingTraits<ELFYAML::VerneedEntry>::mapping(IO &IO, - ELFYAML::VerneedEntry &E) { - assert(!IO.getContext() && "The IO context is initialized already"); - - IO.mapRequired("Version", E.Version); - IO.mapRequired("File", E.File); - IO.mapRequired("Entries", E.AuxV); -} - -void MappingTraits<ELFYAML::VernauxEntry>::mapping(IO &IO, - ELFYAML::VernauxEntry &E) { - assert(!IO.getContext() && "The IO context is initialized already"); - - IO.mapRequired("Name", E.Name); - IO.mapRequired("Hash", E.Hash); - IO.mapRequired("Flags", E.Flags); - IO.mapRequired("Other", E.Other); -} - void MappingTraits<ELFYAML::Relocation>::mapping(IO &IO, ELFYAML::Relocation &Rel) { const auto *Object = static_cast<ELFYAML::Object *>(IO.getContext()); |