diff options
author | Thomas Lively <tlively@google.com> | 2019-01-17 00:39:49 +0000 |
---|---|---|
committer | Thomas Lively <tlively@google.com> | 2019-01-17 00:39:49 +0000 |
commit | 3cfcc94c099140cade96d0d799f017f95eb20bd9 (patch) | |
tree | d98d76b3778efcecba2eeb5582e778673857bfdd /llvm/lib/ObjectYAML/WasmYAML.cpp | |
parent | d24ae47db657b4ee48ac9540aafcf6475b4b9f85 (diff) | |
download | bcm5719-llvm-3cfcc94c099140cade96d0d799f017f95eb20bd9.tar.gz bcm5719-llvm-3cfcc94c099140cade96d0d799f017f95eb20bd9.zip |
Revert "[WebAssembly] Parse llvm.ident into producers section"
This reverts commit eccdbba3a02a33e13b5262e92200a33e2ead873d.
llvm-svn: 351410
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); |