diff options
author | Sam Clegg <sbc@chromium.org> | 2017-11-14 00:49:16 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2017-11-14 00:49:16 +0000 |
commit | 336b4883e2f9e28097973cc9f4eef925b634d565 (patch) | |
tree | f90afcd11d54c52a25c949a194a01aa769b6b33a /test/CodeGen/WebAssembly | |
parent | 6765e2f47d855d7c9f8d4521e71a9d74a731e3e0 (diff) |
[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
Diffstat (limited to 'test/CodeGen/WebAssembly')
-rw-r--r-- | test/CodeGen/WebAssembly/comdat.ll | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGen/WebAssembly/comdat.ll b/test/CodeGen/WebAssembly/comdat.ll new file mode 100644 index 00000000000..6a83ae87e14 --- /dev/null +++ b/test/CodeGen/WebAssembly/comdat.ll @@ -0,0 +1,5 @@ +; RUN: not llc -mtriple wasm32-unknown-unknown-wasm %s 2>&1 | FileCheck %s + +$f = comdat any +@f = global i32 0, comdat +; CHECK: LLVM ERROR: WebAssembly doesn't support COMDATs, 'f' cannot be lowered. |