aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/obj2yaml/wasm2yaml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/obj2yaml/wasm2yaml.cpp')
-rw-r--r--llvm/tools/obj2yaml/wasm2yaml.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/llvm/tools/obj2yaml/wasm2yaml.cpp b/llvm/tools/obj2yaml/wasm2yaml.cpp
index 0bd5642b7600..7581bbef50ad 100644
--- a/llvm/tools/obj2yaml/wasm2yaml.cpp
+++ b/llvm/tools/obj2yaml/wasm2yaml.cpp
@@ -133,29 +133,6 @@ WasmDumper::dumpCustomSection(const WasmSection &WasmSec) {
}
CustomSec = std::move(LinkingSec);
- } else if (WasmSec.Name == "producers") {
- std::unique_ptr<WasmYAML::ProducersSection> ProducersSec =
- make_unique<WasmYAML::ProducersSection>();
- const llvm::wasm::WasmProducerInfo &Info = Obj.getProducerInfo();
- for (auto &E : Info.Languages) {
- WasmYAML::ProducerEntry Producer;
- Producer.Name = E.first;
- Producer.Version = E.second;
- ProducersSec->Languages.push_back(Producer);
- }
- for (auto &E : Info.Tools) {
- WasmYAML::ProducerEntry Producer;
- Producer.Name = E.first;
- Producer.Version = E.second;
- ProducersSec->Tools.push_back(Producer);
- }
- for (auto &E : Info.SDKs) {
- WasmYAML::ProducerEntry Producer;
- Producer.Name = E.first;
- Producer.Version = E.second;
- ProducersSec->SDKs.push_back(Producer);
- }
- CustomSec = std::move(ProducersSec);
} else {
CustomSec = make_unique<WasmYAML::CustomSection>(WasmSec.Name);
}