[WebAssembly] Add support for init functions linking metadata
commite1acb56f11946214ba2903e25c7cce3d9e5f7791
authorSam Clegg <sbc@chromium.org>
Thu, 14 Dec 2017 21:10:03 +0000 (14 21:10 +0000)
committerSam Clegg <sbc@chromium.org>
Thu, 14 Dec 2017 21:10:03 +0000 (14 21:10 +0000)
tree116d9304faf586a507e28272bca84147a44a6f5e
parent00bb3b5609d49633f5c456b414e80bc72da728aa
[WebAssembly] Add support for init functions linking metadata

Summary:
This change lays the groundwork lowering of @llvm.global_ctors
and @llvm.global_dtors for the wasm object format.  Some parts
of this patch are subset of: https://reviews.llvm.org/D40759

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

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

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320742 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/BinaryFormat/Wasm.h
include/llvm/Object/Wasm.h
include/llvm/ObjectYAML/WasmYAML.h
lib/Object/WasmObjectFile.cpp
lib/ObjectYAML/WasmYAML.cpp
test/ObjectYAML/wasm/linking_section.yaml
tools/obj2yaml/wasm2yaml.cpp
tools/yaml2obj/yaml2wasm.cpp