[WebAssembly] Add version to object file metadata
commit14598cb5beaf8693d1ba67c0c144f08678ccce79
authorSam Clegg <sbc@chromium.org>
Thu, 26 Apr 2018 18:15:32 +0000 (26 18:15 +0000)
committerSam Clegg <sbc@chromium.org>
Thu, 26 Apr 2018 18:15:32 +0000 (26 18:15 +0000)
tree5d1c8bf45741e7129822a8888e350d445cfc14a5
parent421a0c12e3d69f48b6e7a8945569448813a0db38
[WebAssembly] Add version to object file metadata

Summary: See https://github.com/WebAssembly/tool-conventions/issues/54

Subscribers: jfb, dschuff, jgravelle-google, aheejin, sunfish, llvm-commits

Differential Revision: https://reviews.llvm.org/D46069

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330969 91177308-0d34-0410-b5e6-96231b3b80d8
31 files changed:
include/llvm/BinaryFormat/Wasm.h
include/llvm/ObjectYAML/WasmYAML.h
lib/MC/WasmObjectWriter.cpp
lib/Object/WasmObjectFile.cpp
lib/ObjectYAML/WasmYAML.cpp
test/MC/WebAssembly/array-fill.ll
test/MC/WebAssembly/bss.ll
test/MC/WebAssembly/comdat.ll
test/MC/WebAssembly/explicit-sections.ll
test/MC/WebAssembly/global-ctor-dtor.ll
test/MC/WebAssembly/unnamed-data.ll
test/MC/WebAssembly/visibility.ll
test/MC/WebAssembly/weak-alias.ll
test/MC/WebAssembly/weak.ll
test/Object/Inputs/trivial-object-test.wasm
test/Object/obj2yaml.test
test/Object/wasm-bad-metadata-version.yaml [new file with mode: 0644]
test/ObjectYAML/wasm/code_section.yaml
test/ObjectYAML/wasm/data_section.yaml
test/ObjectYAML/wasm/invalid_global_weak.yaml
test/ObjectYAML/wasm/linking_section.yaml
test/ObjectYAML/wasm/weak_symbols.yaml
test/tools/llvm-nm/wasm/exports.yaml
test/tools/llvm-nm/wasm/imports.yaml
test/tools/llvm-nm/wasm/weak-symbols.yaml
test/tools/llvm-objdump/Inputs/trivial.obj.wasm
test/tools/llvm-objdump/wasm.txt
test/tools/llvm-readobj/Inputs/trivial.obj.wasm
test/tools/llvm-readobj/sections.test
tools/obj2yaml/wasm2yaml.cpp
tools/yaml2obj/yaml2wasm.cpp