OSDN Git Service

[WebAssembly] Add COMDAT support
authorSam Clegg <sbc@chromium.org>
Tue, 9 Jan 2018 23:43:14 +0000 (23:43 +0000)
committerSam Clegg <sbc@chromium.org>
Tue, 9 Jan 2018 23:43:14 +0000 (23:43 +0000)
commite92250ac8f379ddde51190e059a9b0257178a992
tree5d8a0aaee3ff69bf3314bf55b54d7340d95dcde1
parente1e7096503f4cef4adc4295e1863942f0ce28f19
[WebAssembly] Add COMDAT support

This adds COMDAT support to the Wasm object-file format.
Spec: https://github.com/WebAssembly/tool-conventions/pull/31

Corresponding LLD change:
https://bugs.llvm.org/show_bug.cgi?id=35533, and D40845

Patch by Nicholas Wilson

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@322135 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
docs/LangRef.rst
include/llvm/ADT/Triple.h
include/llvm/BinaryFormat/Wasm.h
include/llvm/Object/Wasm.h
include/llvm/ObjectYAML/WasmYAML.h
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
lib/MC/WasmObjectWriter.cpp
lib/Object/WasmObjectFile.cpp
lib/ObjectYAML/WasmYAML.cpp
test/CodeGen/WebAssembly/comdat.ll [deleted file]
test/MC/WebAssembly/comdat.ll [new file with mode: 0644]
tools/obj2yaml/wasm2yaml.cpp
tools/yaml2obj/yaml2wasm.cpp