diff options
Diffstat (limited to 'llvm/lib/ObjectYAML/WasmYAML.cpp')
-rw-r--r-- | llvm/lib/ObjectYAML/WasmYAML.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/llvm/lib/ObjectYAML/WasmYAML.cpp b/llvm/lib/ObjectYAML/WasmYAML.cpp index b45c8ce65eb..47bf853e0d3 100644 --- a/llvm/lib/ObjectYAML/WasmYAML.cpp +++ b/llvm/lib/ObjectYAML/WasmYAML.cpp @@ -74,14 +74,6 @@ static void sectionMapping(IO &IO, WasmYAML::LinkingSection &Section) { IO.mapOptional("Comdats", Section.Comdats); } -static void sectionMapping(IO &IO, WasmYAML::ProducersSection &Section) { - commonSectionMapping(IO, Section); - IO.mapRequired("Name", Section.Name); - IO.mapOptional("Languages", Section.Languages); - IO.mapOptional("Tools", Section.Tools); - IO.mapOptional("SDKs", Section.SDKs); -} - static void sectionMapping(IO &IO, WasmYAML::CustomSection &Section) { commonSectionMapping(IO, Section); IO.mapRequired("Name", Section.Name); @@ -177,10 +169,6 @@ void MappingTraits<std::unique_ptr<WasmYAML::Section>>::mapping( if (!IO.outputting()) Section.reset(new WasmYAML::NameSection()); sectionMapping(IO, *cast<WasmYAML::NameSection>(Section.get())); - } else if (SectionName == "producers") { - if (!IO.outputting()) - Section.reset(new WasmYAML::ProducersSection()); - sectionMapping(IO, *cast<WasmYAML::ProducersSection>(Section.get())); } else { if (!IO.outputting()) Section.reset(new WasmYAML::CustomSection(SectionName)); @@ -305,12 +293,6 @@ void MappingTraits<WasmYAML::NameEntry>::mapping( IO.mapRequired("Name", NameEntry.Name); } -void MappingTraits<WasmYAML::ProducerEntry>::mapping( - IO &IO, WasmYAML::ProducerEntry &ProducerEntry) { - IO.mapRequired("Name", ProducerEntry.Name); - IO.mapRequired("Version", ProducerEntry.Version); -} - void MappingTraits<WasmYAML::SegmentInfo>::mapping( IO &IO, WasmYAML::SegmentInfo &SegmentInfo) { IO.mapRequired("Index", SegmentInfo.Index); |