[WebAssembly] Explicily disable comdat support for wasm output
commit336b4883e2f9e28097973cc9f4eef925b634d565
authorSam Clegg <sbc@chromium.org>
Tue, 14 Nov 2017 00:49:16 +0000 (14 00:49 +0000)
committerSam Clegg <sbc@chromium.org>
Tue, 14 Nov 2017 00:49:16 +0000 (14 00:49 +0000)
treef90afcd11d54c52a25c949a194a01aa769b6b33a
parent6765e2f47d855d7c9f8d4521e71a9d74a731e3e0
[WebAssembly] Explicily disable comdat support for wasm output

For now at least.  We clearly need some kind of comdat or
linkonce_odr support for wasm but currently COMDAT is not
supported.

Disable COMDAT support in the same way we do the Mach-O.  This
also causes clang not to generated COMDATs.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318123 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/Triple.h
lib/Bitcode/Reader/BitcodeReader.cpp
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
test/CodeGen/WebAssembly/comdat.ll [new file with mode: 0644]