From 4d0cc83be75e0574752f14983d35fa2c0554d786 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 5 Feb 2019 16:53:33 +0000 Subject: [PATCH] [WebAssembly] Use wasm-ld rather than lld with -flavor in tests. NFC. Differential Revision: https://reviews.llvm.org/D57758 llvm-svn: 353187 --- lld/test/wasm/fatal-warnings.ll | 4 ++-- lld/test/wasm/lto/opt-level.ll | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lld/test/wasm/fatal-warnings.ll b/lld/test/wasm/fatal-warnings.ll index 0007dc2..d338420 100644 --- a/lld/test/wasm/fatal-warnings.ll +++ b/lld/test/wasm/fatal-warnings.ll @@ -1,7 +1,7 @@ ; RUN: llc -filetype=obj %s -o %t.main.o ; RUN: llc -filetype=obj %p/Inputs/ret32.ll -o %t.ret32.o -; RUN: lld -flavor wasm -o %t.wasm %t.main.o %t.ret32.o 2>&1 | FileCheck %s -check-prefix=CHECK-WARN -; RUN: not lld -flavor wasm --fatal-warnings -o %t.wasm %t.main.o %t.ret32.o 2>&1 | FileCheck %s -check-prefix=CHECK-FATAL +; RUN: wasm-ld -o %t.wasm %t.main.o %t.ret32.o 2>&1 | FileCheck %s -check-prefix=CHECK-WARN +; RUN: not wasm-ld --fatal-warnings -o %t.wasm %t.main.o %t.ret32.o 2>&1 | FileCheck %s -check-prefix=CHECK-FATAL ; CHECK-WARN: warning: function signature mismatch: ret32 ; CHECK-FATAL: error: function signature mismatch: ret32 diff --git a/lld/test/wasm/lto/opt-level.ll b/lld/test/wasm/lto/opt-level.ll index b7e6a4c..f6156e7 100644 --- a/lld/test/wasm/lto/opt-level.ll +++ b/lld/test/wasm/lto/opt-level.ll @@ -7,11 +7,11 @@ ; RUN: obj2yaml %t2a | FileCheck --check-prefix=CHECK-O2 %s ; Reject invalid optimization levels. -; RUN: not ld.lld -o %t3 -e main --lto-O6 %t.o 2>&1 | \ +; RUN: not wasm-ld -o %t3 -e main --lto-O6 %t.o 2>&1 | \ ; RUN: FileCheck --check-prefix=INVALID %s ; INVALID: invalid optimization level for LTO: 6 -; RUN: not ld.lld -o %t3 -m elf_x86_64 -e main --lto-O-1 %t.o 2>&1 | \ +; RUN: not wasm-ld -o %t3 -m elf_x86_64 -e main --lto-O-1 %t.o 2>&1 | \ ; RUN: FileCheck --check-prefix=INVALIDNEGATIVE %s ; INVALIDNEGATIVE: invalid optimization level for LTO: 4294967295 -- 2.7.4