[WebAssembly][yaml2obj][obj2yaml] Elem sections for nonzero tables
authorAndy Wingo <wingo@igalia.com>
Thu, 4 Mar 2021 09:30:00 +0000 (10:30 +0100)
committerAndy Wingo <wingo@igalia.com>
Fri, 5 Mar 2021 10:45:15 +0000 (11:45 +0100)
commita5a3659de788fe4972ac5e91a455add85d037a33
tree49eab075a5ca0ac128e5c59535b7053c5fbf957e
parent4295ae96cdf275cdda8bded9271960a4cac11fb2
[WebAssembly][yaml2obj][obj2yaml] Elem sections for nonzero tables

With reference types, tables can have non-zero table numbers.  This
commit adds support for element sections against these tables.

Differential Revision: https://reviews.llvm.org/D97923
llvm/include/llvm/BinaryFormat/Wasm.h
llvm/include/llvm/Object/Wasm.h
llvm/include/llvm/ObjectYAML/WasmYAML.h
llvm/lib/MC/WasmObjectWriter.cpp
llvm/lib/Object/WasmObjectFile.cpp
llvm/lib/ObjectYAML/WasmEmitter.cpp
llvm/lib/ObjectYAML/WasmYAML.cpp
llvm/test/ObjectYAML/wasm/multiple-tables.yaml [new file with mode: 0644]
llvm/tools/obj2yaml/wasm2yaml.cpp