aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/obj2yaml/wasm2yaml.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2021-09-10 07:21:28 -0400
committerSam Clegg <sbc@chromium.org>2021-09-12 05:30:38 -0700
commitb78c85a44af300f8e3da582411814385cf70239d (patch)
tree31129e08f05a93a8abd14f799a71103e233487b5 /llvm/tools/obj2yaml/wasm2yaml.cpp
parentd338e535ec5f1de8b1b6cf7ea74514dfe1ecd0ce (diff)
downloadllvm-b78c85a44af300f8e3da582411814385cf70239d.zip
llvm-b78c85a44af300f8e3da582411814385cf70239d.tar.gz
llvm-b78c85a44af300f8e3da582411814385cf70239d.tar.bz2
[WebAssembly] Convert to new "dylink.0" section format
This format is based on sub-sections (like the "linking" and "name" sections) and is therefore easier to extend going forward. spec change: https://github.com/WebAssembly/tool-conventions/pull/170 binaryen change: https://github.com/WebAssembly/binaryen/pull/4141 wabt change: https://github.com/WebAssembly/wabt/pull/1707 emscripten change: https://github.com/emscripten-core/emscripten/pull/15019 Differential Revision: https://reviews.llvm.org/D109595
Diffstat (limited to 'llvm/tools/obj2yaml/wasm2yaml.cpp')
-rw-r--r--llvm/tools/obj2yaml/wasm2yaml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/obj2yaml/wasm2yaml.cpp b/llvm/tools/obj2yaml/wasm2yaml.cpp
index 5b4f672..9555cb2 100644
--- a/llvm/tools/obj2yaml/wasm2yaml.cpp
+++ b/llvm/tools/obj2yaml/wasm2yaml.cpp
@@ -51,7 +51,7 @@ static WasmYAML::Table makeTable(uint32_t Index,
std::unique_ptr<WasmYAML::CustomSection>
WasmDumper::dumpCustomSection(const WasmSection &WasmSec) {
std::unique_ptr<WasmYAML::CustomSection> CustomSec;
- if (WasmSec.Name == "dylink") {
+ if (WasmSec.Name == "dylink" || WasmSec.Name == "dylink.0") {
std::unique_ptr<WasmYAML::DylinkSection> DylinkSec =
std::make_unique<WasmYAML::DylinkSection>();
const wasm::WasmDylinkInfo& Info = Obj.dylinkInfo();