[WebAssembly] Improve lto/comdat.ll test. NFC.
authorSam Clegg <sbc@chromium.org>
Wed, 5 Jun 2019 21:08:30 +0000 (21:08 +0000)
committerSam Clegg <sbc@chromium.org>
Wed, 5 Jun 2019 21:08:30 +0000 (21:08 +0000)
commit7c663cde14ed973dd3c23327b1f5b364c8a3f0a4
treea3270269903160c284c03e4a79d710c0db449164
parent7ce7110e6d964778141c0866488e154b1ce73d69
[WebAssembly] Improve lto/comdat.ll test. NFC.

We were not previously testing the comdat exclusion in bitcode objects
because we were linking two copies of the .bc file and the
`linkonce_odr` linkage type was removing the duplicate `_start` at
the LTO stage.

Now we link an bitcode and non-bitcode version both of which contains a
copy of _start.  We link them in both orders, which means this test will
fail if comdat exclusion is not working correctly in bitcode parsing.

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

llvm-svn: 362650
lld/test/wasm/lto/comdat.ll