[PATCH] D62923: [WebAssembly] Improve lto/comdat.ll test. NFC.
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 5 14:09:19 PDT 2019
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rL362650: [WebAssembly] Improve lto/comdat.ll test. NFC. (authored by sbc, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D62923?vs=203216&id=203245#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62923/new/
https://reviews.llvm.org/D62923
Files:
lld/trunk/test/wasm/lto/comdat.ll
Index: lld/trunk/test/wasm/lto/comdat.ll
===================================================================
--- lld/trunk/test/wasm/lto/comdat.ll
+++ lld/trunk/test/wasm/lto/comdat.ll
@@ -1,15 +1,17 @@
; Verify that comdat symbols can be defined in LTO objects. We had a
; regression where the comdat handling code was causing symbol in the lto object
; to be ignored.
-; RUN: llvm-as %s -o %t.o
-; RUN: wasm-ld %t.o %t.o -o %t.wasm
+; RUN: llvm-as %s -o %t.bc
+; RUN: llc -filetype=obj %s -o %t.o
+; RUN: wasm-ld %t.bc %t.o -o %t.wasm
+; RUN: wasm-ld %t.o %t.bc -o %t.wasm
target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
target triple = "wasm32-unknown-unknown"
$foo = comdat any
-define linkonce_odr void @_start() comdat($foo) {
+define void @_start() comdat($foo) {
entry:
ret void
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62923.203245.patch
Type: text/x-patch
Size: 814 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190605/56ca469b/attachment.bin>
More information about the llvm-commits
mailing list