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 | 999660761e45f0c17693c5a756af69a4eb0b0b71 (patch) | |
| tree | af450981313ff5ce61b88226b2ff1de9105f643f /llvm/test/CodeGen/WebAssembly/comdat.ll | |
| parent | e41151965f04bf631923343566a91c4904f100a6 (diff) | |
| download | bcm5719-llvm-999660761e45f0c17693c5a756af69a4eb0b0b71.tar.gz bcm5719-llvm-999660761e45f0c17693c5a756af69a4eb0b0b71.zip | |
[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
llvm-svn: 318123
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/comdat.ll')
| -rw-r--r-- | llvm/test/CodeGen/WebAssembly/comdat.ll | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/comdat.ll b/llvm/test/CodeGen/WebAssembly/comdat.ll new file mode 100644 index 00000000000..6a83ae87e14 --- /dev/null +++ b/llvm/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. |

