summaryrefslogtreecommitdiffstats
path: root/lld/test/wasm/gc-sections.ll
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2018-02-16 22:58:02 +0000
committerRui Ueyama <ruiu@google.com>2018-02-16 22:58:02 +0000
commitf05124e60c804bf919cd688130a96ab7fe61cd1c (patch)
tree5d0a31745daf364ade0072743aab3f9767ac6de5 /lld/test/wasm/gc-sections.ll
parent82a61991404fca9ae16941c7445f0d817fd27d9c (diff)
downloadbcm5719-llvm-f05124e60c804bf919cd688130a96ab7fe61cd1c.tar.gz
bcm5719-llvm-f05124e60c804bf919cd688130a96ab7fe61cd1c.zip
Use wasm-ld instead of "lld -flavor wasm".
Invoking lld as ld.lld, ld.ld64, lld-link or wasm-ld is preferred than invoking lld as lld and pass an -flavor option. We have "lld" file mostly for historical reasons. Differential Revision: https://reviews.llvm.org/D43407 llvm-svn: 325405
Diffstat (limited to 'lld/test/wasm/gc-sections.ll')
-rw-r--r--lld/test/wasm/gc-sections.ll8
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/test/wasm/gc-sections.ll b/lld/test/wasm/gc-sections.ll
index bc65d42dab1..aaf2cda2ca2 100644
--- a/lld/test/wasm/gc-sections.ll
+++ b/lld/test/wasm/gc-sections.ll
@@ -1,5 +1,5 @@
; RUN: llc -filetype=obj %s -o %t.o
-; RUN: lld -flavor wasm -print-gc-sections -o %t1.wasm %t.o | FileCheck %s -check-prefix=PRINT-GC
+; RUN: wasm-ld -print-gc-sections -o %t1.wasm %t.o | FileCheck %s -check-prefix=PRINT-GC
; PRINT-GC: removing unused section 'unused_function' in file '{{.*}}'
; PRINT-GC-NOT: removing unused section 'used_function' in file '{{.*}}'
; PRINT-GC: removing unused section '.data.unused_data' in file '{{.*}}'
@@ -60,7 +60,7 @@ entry:
; CHECK-NEXT: Name: __wasm_call_ctors
; CHECK-NEXT: ...
-; RUN: lld -flavor wasm -print-gc-sections --no-gc-sections -o %t1.no-gc.wasm %t.o
+; RUN: wasm-ld -print-gc-sections --no-gc-sections -o %t1.no-gc.wasm %t.o
; RUN: obj2yaml %t1.no-gc.wasm | FileCheck %s -check-prefix=NO-GC
; NO-GC: - Type: TYPE
@@ -100,5 +100,5 @@ entry:
; NO-GC-NEXT: Name: __wasm_call_ctors
; NO-GC-NEXT: ...
-; RUN: not lld -flavor wasm --gc-sections --relocatable -o %t1.no-gc.wasm %t.o 2>&1 | FileCheck %s -check-prefix=CHECK-ERROR
-; CHECK-ERROR: lld{{.*}}: error: -r and --gc-sections may not be used together
+; RUN: not wasm-ld --gc-sections --relocatable -o %t1.no-gc.wasm %t.o 2>&1 | FileCheck %s -check-prefix=CHECK-ERROR
+; CHECK-ERROR: wasm-ld: error: -r and --gc-sections may not be used together
OpenPOWER on IntegriCloud