Skip to content

Commit b587ca9

Browse files
committed
[test] Replace yaml2obj > with yaml2obj -o and remove unneeded input redirection
1 parent dc693a0 commit b587ca9

File tree

228 files changed

+294
-294
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

228 files changed

+294
-294
lines changed

lld/test/COFF/align.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: yaml2obj < %s > %t.obj
1+
# RUN: yaml2obj %s -o %t.obj
22
# RUN: lld-link /out:%t.exe /entry:main /align:32 %t.obj
33
# RUN: llvm-readobj --file-headers %t.exe | FileCheck %s
44

lld/test/COFF/allow-unknown-debug-info.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: yaml2obj %s > %t.obj
1+
# RUN: yaml2obj %s -o %t.obj
22
# RUN: lld-link -safeseh:no /dll /noentry /debug %t.obj 2>&1 | FileCheck %s
33

44
# CHECK: ignoring section .debug$S with unrecognized magic 0x1

lld/test/COFF/alternatename.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: yaml2obj < %p/Inputs/ret42.yaml > %t.obj
1+
# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
22
# RUN: lld-link /entry:foo /subsystem:console \
33
# RUN: /alternatename:foo=main /out:%t.exe %t.obj
44
# RUN: lld-link /entry:foo /subsystem:console \
@@ -7,7 +7,7 @@
77
# RUN: /alternatename:nosuchsym1=nosuchsym2 \
88
# RUN: /out:%t.exe %t.obj
99

10-
# RUN: yaml2obj < %s > %t.obj
10+
# RUN: yaml2obj %s -o %t.obj
1111
# RUN: lld-link /entry:foo /subsystem:console /out:%t.exe %t.obj
1212

1313
--- !COFF

lld/test/COFF/ar-comdat.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# RUN: yaml2obj %s > %t1.obj
2-
# RUN: yaml2obj %s > %t2.obj
1+
# RUN: yaml2obj %s -o %t1.obj
2+
# RUN: yaml2obj %s -o %t2.obj
33
# RUN: llvm-lib /out:%t.lib %t1.obj %t2.obj
44
# RUN: lld-link /out:%t.exe /lldmap:%t.map /entry:main /subsystem:console %p/Inputs/ret42.obj %t.lib
55
# RUN: FileCheck %s < %t.map

lld/test/COFF/arm64-delayimport.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# REQUIRES: aarch64
22

3-
# RUN: yaml2obj < %s > %t.obj
3+
# RUN: yaml2obj %s -o %t.obj
44
# RUN: lld-link /entry:main /subsystem:console /out:%t.exe %t.obj %p/Inputs/library-arm64.lib /alternatename:__delayLoadHelper2=main /delayload:library.dll
55
# RUN: llvm-objdump -d %t.exe | FileCheck %s --check-prefix DISASM
66
# RUN: llvm-readobj --coff-imports %t.exe | FileCheck %s -check-prefix IMPORTS

lld/test/COFF/arm64-import2.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# REQUIRES: aarch64
22

3-
# RUN: yaml2obj < %s > %t.obj
3+
# RUN: yaml2obj %s -o %t.obj
44
# RUN: llvm-objdump -d %t.obj | FileCheck %s --check-prefix BEFORE
55
# RUN: lld-link /entry:main /subsystem:console /out:%t.exe %t.obj %p/Inputs/library-arm64.lib %p/Inputs/library2-arm64.lib
66
# RUN: llvm-objdump -d %t.exe | FileCheck %s --check-prefix AFTER

lld/test/COFF/arm64-magic.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: yaml2obj < %s > %t.obj
1+
# RUN: yaml2obj %s -o %t.obj
22
# RUN: lld-link /out:%t.exe /entry:mainCRTStartup /subsystem:console %t.obj
33
# RUN: llvm-readobj --file-headers %t.exe | FileCheck %s
44

lld/test/COFF/arm64-relocs-imports.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# REQUIRES: aarch64
22

3-
# RUN: yaml2obj < %s > %t.obj
3+
# RUN: yaml2obj %s -o %t.obj
44
# RUN: llvm-objdump -d %t.obj | FileCheck %s --check-prefix BEFORE
55
# RUN: lld-link /entry:main /subsystem:console /out:%t.exe %t.obj %p/Inputs/library-arm64.lib
66
# RUN: llvm-objdump -d %t.exe | FileCheck %s --check-prefix AFTER

lld/test/COFF/armnt-blx23t.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# REQUIRES: arm
22

3-
# RUN: yaml2obj < %s > %t.obj
3+
# RUN: yaml2obj %s -o %t.obj
44
# RUN: llvm-objdump -d %t.obj | FileCheck %s --check-prefix BEFORE
55
# RUN: lld-link /entry:function /subsystem:console /out:%t.exe %t.obj
66
# RUN: llvm-objdump -d %t.exe | FileCheck %s --check-prefix AFTER

lld/test/COFF/armnt-branch24t.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# REQUIRES: arm
22

3-
# RUN: yaml2obj < %s > %t.obj
3+
# RUN: yaml2obj %s -o %t.obj
44
# RUN: llvm-objdump -d %t.obj | FileCheck %s --check-prefix BEFORE
55
# RUN: lld-link /entry:function /subsystem:console /out:%t.exe %t.obj
66
# RUN: llvm-objdump -d %t.exe | FileCheck %s --check-prefix AFTER

lld/test/COFF/armnt-dynamicbase.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# RUN: yaml2obj < %p/Inputs/armnt-executable.obj.yaml > %t.obj
1+
# RUN: yaml2obj %p/Inputs/armnt-executable.obj.yaml -o %t.obj
22
# RUN: not lld-link /out:%t.exe /entry:mainCRTStartup /subsystem:console %t.obj /dynamicbase:no 2>&1 | FileCheck %s
33
# CHECK: dynamicbase:no is not compatible with arm

lld/test/COFF/armnt-entry-point.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: yaml2obj < %p/Inputs/armnt-executable.obj.yaml > %t.obj
1+
# RUN: yaml2obj %p/Inputs/armnt-executable.obj.yaml -o %t.obj
22
# RUN: lld-link /out:%t.exe /entry:mainCRTStartup /subsystem:console %t.obj
33
# RUN: llvm-readobj --file-headers %t.exe | FileCheck %s
44

lld/test/COFF/armnt-imports.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: yaml2obj < %s > %t.obj
1+
# RUN: yaml2obj %s -o %t.obj
22
# RUN: lld-link /out:%t.exe /subsystem:console %t.obj \
33
# RUN: /entry:mainCRTStartup %p/Inputs/library.lib
44
# RUN: llvm-readobj --coff-imports %t.exe | FileCheck %s

lld/test/COFF/armnt-mov32t-exec.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# REQUIRES: arm
22

3-
# RUN: yaml2obj < %s > %t.obj
3+
# RUN: yaml2obj %s -o %t.obj
44
# RUN: llvm-objdump -d %t.obj | FileCheck %s --check-prefix BEFORE
55
# RUN: lld-link /out:%t.exe /subsystem:console /entry:get_function %t.obj
66
# RUN: llvm-objdump -d %t.exe | FileCheck %s --check-prefix AFTER

lld/test/COFF/armnt-movt32t.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# REQUIRES: arm
22

3-
# RUN: yaml2obj < %s > %t.obj
3+
# RUN: yaml2obj %s -o %t.obj
44
# RUN: llvm-objdump -d %t.obj | FileCheck %s --check-prefix BEFORE
55
# RUN: lld-link /entry:get_buffer /subsystem:console /out:%t.exe %t.obj
66
# RUN: llvm-objdump -d %t.exe | FileCheck %s --check-prefix AFTER

lld/test/COFF/armnt-rel32.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# REQUIRES: arm
22

3-
# RUN: yaml2obj < %s > %t.obj
3+
# RUN: yaml2obj %s -o %t.obj
44
# RUN: llvm-objdump -s %t.obj | FileCheck %s --check-prefix BEFORE
55
# RUN: lld-link /entry:function /subsystem:console /out:%t.exe %t.obj
66
# RUN: llvm-objdump -s %t.exe | FileCheck %s --check-prefix AFTER

lld/test/COFF/associative-comdat-empty.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: yaml2obj < %s > %t.obj
1+
# RUN: yaml2obj %s -o %t.obj
22
# RUN: not lld-link /include:symbol /dll /noentry /nodefaultlib %t.obj /out:%t.exe 2>&1 | FileCheck %s
33

44
# Tests an associative comdat being associated with an empty section errors.

lld/test/COFF/base.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: yaml2obj < %s > %t.obj
1+
# RUN: yaml2obj %s -o %t.obj
22

33
# RUN: lld-link /out:%t.exe /entry:main %t.obj
44
# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=DEFAULT-HEADER %s

lld/test/COFF/baserel.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: yaml2obj < %s > %t.obj
1+
# RUN: yaml2obj %s -o %t.obj
22
#
33
# RUN: lld-link /out:%t.exe /entry:main %t.obj %p/Inputs/std64.lib
44
# RUN: llvm-readobj --coff-basereloc %t.exe | FileCheck %s -check-prefix=BASEREL

lld/test/COFF/broken-arm-reloc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#variable:
1515
# .long 42
1616

17-
# RUN: yaml2obj %s > %t.obj
17+
# RUN: yaml2obj %s -o %t.obj
1818
# RUN: not lld-link -out:%t.exe -entry:main %t.obj 2>&1 | FileCheck %s
1919

2020
# CHECK: error: unexpected instruction in MOVT instruction in MOV32T relocation

lld/test/COFF/combined-resources.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
// > x86_64-w64-mingw32-windres combined-resources.res combined-resources.o
99
// > cvtres -machine:x64 -out:combined-resources-2.o combined-resources.res
1010

11-
# RUN: yaml2obj < %p/Inputs/ret42.yaml > %t.obj
11+
# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
1212
# RUN: lld-link /out:%t.exe /entry:main %t.obj %p/Inputs/resource.res \
1313
# RUN: %p/Inputs/combined-resources.res %p/Inputs/combined-resources-2.res
1414

1515
# RUN: llvm-readobj --coff-resources --file-headers --section-data %t.exe | \
1616
# RUN: FileCheck %s
1717

18-
# RUN: yaml2obj < %p/Inputs/combined-resources.yaml > %t-combined-resources.o
19-
# RUN: yaml2obj < %p/Inputs/combined-resources-2.yaml > %t-combined-resources-2.o
18+
# RUN: yaml2obj %p/Inputs/combined-resources.yaml -o %t-combined-resources.o
19+
# RUN: yaml2obj %p/Inputs/combined-resources-2.yaml -o %t-combined-resources-2.o
2020

2121
# RUN: lld-link /lldmingw /out:%t-resobj.exe /entry:main %t.obj %p/Inputs/resource.res \
2222
# RUN: %t-combined-resources.o %t-combined-resources-2.o

lld/test/COFF/common-alignment.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# REQUIRES: x86
2-
# RUN: yaml2obj %s > %t.obj
2+
# RUN: yaml2obj %s -o %t.obj
33
# RUN: lld-link /out:%t.exe /entry:main %t.obj %t.obj
44
# RUN: llvm-objdump -d %t.exe | FileCheck %s
55

lld/test/COFF/common.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# REQUIRES: x86
2-
# RUN: yaml2obj %s > %t.obj
2+
# RUN: yaml2obj %s -o %t.obj
33
# RUN: lld-link /out:%t.exe /entry:main %t.obj %t.obj
44
# RUN: llvm-objdump -d %t.exe | FileCheck %s
55

lld/test/COFF/conflict-mangled.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# RUN: yaml2obj < %s > %t1.obj
2-
# RUN: yaml2obj < %s > %t2.obj
1+
# RUN: yaml2obj %s -o %t1.obj
2+
# RUN: yaml2obj %s -o %t2.obj
33
# RUN: not lld-link /out:%t.exe %t1.obj %t2.obj >& %t.log
44
# RUN: FileCheck %s < %t.log
55
# RUN: not lld-link /out:%t.exe /demangle %t1.obj %t2.obj 2>&1 | FileCheck %s

lld/test/COFF/conflict.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# REQUIRES: x86
2-
# RUN: yaml2obj < %s > %t1.obj
3-
# RUN: yaml2obj < %s > %t2.obj
2+
# RUN: yaml2obj %s -o %t1.obj
3+
# RUN: yaml2obj %s -o %t2.obj
44
# RUN: not lld-link /out:%t.exe %t1.obj %t2.obj 2>&1 | FileCheck --check-prefix=OBJ %s
55

66
# RUN: llvm-as -o %t.lto1.obj %S/Inputs/conflict.ll

lld/test/COFF/crt-chars.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: yaml2obj %s > %t.obj
1+
# RUN: yaml2obj %s -o %t.obj
22
# RUN: lld-link /out:%t.dll /entry:__ImageBase /dll %t.obj
33
# RUN: llvm-readobj --sections --section-data %t.dll | FileCheck %s
44

lld/test/COFF/crt-dyn-initializer-order.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
# // using `clang-cl /c a.cpp | lld-link a.obj` works
2222
# // using `cl /c a.cpp | lld-link a.obj` fails without lld/COFF/Writer.cpp/Writer::sortSectionChunks()
2323

24-
# RUN: yaml2obj %s > %t.obj
25-
# RUN: yaml2obj %S/Inputs/crt-dyn-initializer-order_1.yaml > %t1.obj
26-
# RUN: yaml2obj %S/Inputs/crt-dyn-initializer-order_2.yaml > %t2.obj
24+
# RUN: yaml2obj %s -o %t.obj
25+
# RUN: yaml2obj %S/Inputs/crt-dyn-initializer-order_1.yaml -o %t1.obj
26+
# RUN: yaml2obj %S/Inputs/crt-dyn-initializer-order_2.yaml -o %t2.obj
2727

2828
# CHECK: Name: .CRT
2929
# CHECK: Characteristics [

lld/test/COFF/debug-fastlink.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# RUN: yaml2obj < %p/Inputs/pdb1.yaml > %t1.obj
2-
# RUN: yaml2obj < %p/Inputs/pdb2.yaml > %t2.obj
1+
# RUN: yaml2obj %p/Inputs/pdb1.yaml -o %t1.obj
2+
# RUN: yaml2obj %p/Inputs/pdb2.yaml -o %t2.obj
33

44
; If /DEBUG:FASTLINK is specified, /DEBUG:FULL is used instead
55
# RUN: rm -f %t.pdb

lld/test/COFF/debug.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: yaml2obj %s > %t.obj
1+
# RUN: yaml2obj %s -o %t.obj
22
# RUN: lld-link /out:%t.exe /entry:main /subsystem:console %t.obj
33

44
--- !COFF

lld/test/COFF/def-name.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# RUN: rm -rf %t
22
# RUN: mkdir -p %t
33
# RUN: cd %t
4-
# RUN: yaml2obj < %p/Inputs/ret42.yaml > in.obj
4+
# RUN: yaml2obj %p/Inputs/ret42.yaml -o in.obj
55

66
# RUN: lld-link /entry:main in.obj
77
# RUN: lld-link /entry:main /dll in.obj

lld/test/COFF/default-alignment.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: yaml2obj < %s > %t.obj
1+
# RUN: yaml2obj %s -o %t.obj
22
# RUN: lld-link /out:%t.exe %t.obj /entry:__ImageBase /subsystem:console
33
# RUN: llvm-objdump -s %t.exe | FileCheck %s
44

lld/test/COFF/defparser.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: yaml2obj < %p/Inputs/ret42.yaml > %t.obj
1+
# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
22

33
# RUN: echo -e "LIBRARY foo\nEXPORTS ? @" > %t.def
44
# RUN: not lld-link /def:%t.def %t.obj

lld/test/COFF/delayimports-armnt.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# REQUIRES: arm
2-
# RUN: yaml2obj < %s > %t.obj
2+
# RUN: yaml2obj %s -o %t.obj
33
# RUN: lld-link %t.obj %p/Inputs/library.lib /subsystem:console \
44
# RUN: /entry:mainCRTStartup /alternatename:__delayLoadHelper2=mainCRTStartup \
55
# RUN: /delayload:library.dll /out:%t.exe

lld/test/COFF/delayimports-error.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# RUN: mkdir -p %t.dir
2-
# RUN: yaml2obj < %p/Inputs/delayimports-error.yaml > %t1.obj
2+
# RUN: yaml2obj %p/Inputs/delayimports-error.yaml -o %t1.obj
33
# RUN: lld-link /out:%t.dir/foo.dll /dll %t1.obj /export:datasym,DATA /noentry
44

5-
# RUN: yaml2obj < %s > %t2.obj
5+
# RUN: yaml2obj %s -o %t2.obj
66
# RUN: not lld-link /out:%t.exe /entry:main %t2.obj %t.dir/foo.lib /delayload:foo.dll \
77
# RUN: /alternatename:__delayLoadHelper2=main /opt:noref >& %t.log
88
# RUN: FileCheck %s < %t.log

lld/test/COFF/delayimports32.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# REQUIRES: x86
2-
# RUN: yaml2obj < %p/Inputs/hello32.yaml > %t.obj
2+
# RUN: yaml2obj %p/Inputs/hello32.yaml -o %t.obj
33
# RUN: lld-link -safeseh:no %t.obj %p/Inputs/std32.lib /subsystem:console \
44
# RUN: /entry:main@0 /alternatename:___delayLoadHelper2@8=_main@0 \
55
# RUN: /delayload:std32.dll /out:%t.exe

lld/test/COFF/delayimporttables.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# RUN: yaml2obj %p/Inputs/delayimporttables-dll1.yaml > %t1.obj
2-
# RUN: yaml2obj %p/Inputs/delayimporttables-dll2.yaml > %t2.obj
3-
# RUN: yaml2obj %s > %t.obj
1+
# RUN: yaml2obj %p/Inputs/delayimporttables-dll1.yaml -o %t1.obj
2+
# RUN: yaml2obj %p/Inputs/delayimporttables-dll2.yaml -o %t2.obj
3+
# RUN: yaml2obj %s -o %t.obj
44
# RUN: lld-link /nodefaultlib /entry:DllMain /out:%T/delayimporttables-dll1.dll /dll /implib:%t-dll1.lib %t1.obj
55
# RUN: lld-link /nodefaultlib /entry:DllMain /out:%T/delayimporttables-dll2.dll /dll /implib:%t-dll2.lib %t2.obj
66
# RUN: lld-link /nodefaultlib /entry:main /out:%t.exe /delayload:delayimporttables-dll1.dll /delayload:delayimporttables-dll2.dll %t.obj %t-dll1.lib %t-dll2.lib

lld/test/COFF/dll.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# REQUIRES: x86
2-
# RUN: yaml2obj < %p/Inputs/export.yaml > %t.obj
2+
# RUN: yaml2obj %p/Inputs/export.yaml -o %t.obj
33
# RUN: lld-link /out:%t.dll /dll %t.obj /export:exportfn1 /export:exportfn2 \
44
# RUN: /export:mangled
55
# RUN: llvm-objdump -p %t.dll | FileCheck --check-prefix=EXPORT %s
@@ -13,7 +13,7 @@ EXPORT-NEXT: 2 0x1010 exportfn2
1313
EXPORT-NEXT: 3 0x1010 exportfn3
1414
EXPORT-NEXT: 4 0x1010 mangled
1515

16-
# RUN: yaml2obj < %p/Inputs/export2.yaml > %t5.obj
16+
# RUN: yaml2obj %p/Inputs/export2.yaml -o %t5.obj
1717
# RUN: rm -f %t5.lib
1818
# RUN: llvm-ar cru %t5.lib %t5.obj
1919
# RUN: lld-link /out:%t5.dll /dll %t.obj %t5.lib /export:mangled2
@@ -40,7 +40,7 @@ EXPORT-LTO-NEXT: 3 0x1030 exportfn3
4040

4141
# RUN: lld-link /out:%t.dll /dll %t.obj /implib:%t2.lib \
4242
# RUN: /export:exportfn1 /export:exportfn2
43-
# RUN: yaml2obj < %p/Inputs/import.yaml > %t2.obj
43+
# RUN: yaml2obj %p/Inputs/import.yaml -o %t2.obj
4444
# RUN: lld-link /out:%t2.exe /entry:main %t2.obj %t2.lib
4545
# RUN: llvm-readobj --coff-imports %t2.exe | FileCheck -check-prefix=IMPORT %s
4646

lld/test/COFF/dllimport-gc.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# RUN: yaml2obj < %p/Inputs/export.yaml > %t-lib.obj
1+
# RUN: yaml2obj %p/Inputs/export.yaml -o %t-lib.obj
22
# RUN: lld-link /out:%t.dll /dll %t-lib.obj /implib:%t.lib /export:exportfn1
33

4-
# RUN: yaml2obj < %p/Inputs/oldname.yaml > %t-oldname.obj
4+
# RUN: yaml2obj %p/Inputs/oldname.yaml -o %t-oldname.obj
55

6-
# RUN: yaml2obj < %s > %t.obj
6+
# RUN: yaml2obj %s -o %t.obj
77

88
# RUN: lld-link /out:%t1.exe /entry:main %t.obj %t-oldname.obj %t.lib
99
# RUN: llvm-readobj --coff-imports %t1.exe | FileCheck -check-prefix=REF %s

lld/test/COFF/driver-opt.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# RUN: mkdir -p %t.dir
2-
# RUN: yaml2obj < %s > %t.dir/foo.obj
2+
# RUN: yaml2obj %s -o %t.dir/foo.obj
33

44
# RUN: rm -f %t.dir/foo.sys
55
# RUN: cd %t.dir; lld-link /driver foo.obj

lld/test/COFF/driver.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ MISSING: 'nosuchfile.obj': {{[Nn]}}o such file or directory
55
# RUN: lld-link --version | FileCheck -check-prefix=VERSION %s
66
VERSION: {{LLD [0-9]+\.[0-9]+}}
77

8-
# RUN: yaml2obj < %p/Inputs/export.yaml > %t.obj
8+
# RUN: yaml2obj %p/Inputs/export.yaml -o %t.obj
99
# RUN: lld-link /out:%t.dll /dll %t.obj
1010
# RUN: not lld-link /out:%t.exe %t.dll 2>&1 | FileCheck -check-prefix=BADFILE %s
1111
BADFILE: bad file type. Did you specify a DLL instead of an import library?
@@ -16,7 +16,7 @@ LIBHELP: OVERVIEW: LLVM Lib
1616
# RUN: not lld-link /WX /lib 2>&1 | FileCheck -check-prefix=LIBBAD %s
1717
LIBBAD: ignoring /lib since it's not the first argument
1818

19-
# RUN: yaml2obj < %p/Inputs/hello32.yaml > %t.obj
19+
# RUN: yaml2obj %p/Inputs/hello32.yaml -o %t.obj
2020
# RUN: not lld-link /out:/ %t.obj 2>&1 | FileCheck -check-prefix=DIR %s
2121
DIR: cannot open output file
2222

lld/test/COFF/entry-drectve.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: yaml2obj < %s > %t.obj
1+
# RUN: yaml2obj %s -o %t.obj
22
# RUN: lld-link -safeseh:no /subsystem:console /out:%t.exe %t.obj
33

44
--- !COFF

lld/test/COFF/entry-inference2.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: yaml2obj < %s > %t.obj
1+
# RUN: yaml2obj %s -o %t.obj
22
# RUN: not lld-link /out:%t.exe %t.obj /verbose > %t.log 2>&1
33
# RUN: FileCheck %s < %t.log
44

lld/test/COFF/entry-inference32.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: yaml2obj < %s > %t.obj
1+
# RUN: yaml2obj %s -o %t.obj
22
# RUN: not lld-link /out:%t.exe %t.obj /verbose > %t.log 2>&1
33
# RUN: FileCheck %s < %t.log
44

lld/test/COFF/entry-mangled.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# REQUIRES: x86
2-
# RUN: yaml2obj < %s > %t.obj
2+
# RUN: yaml2obj %s -o %t.obj
33
# RUN: lld-link /out:%t.exe /entry:main %t.obj
44
# RUN: llvm-as -o %t.lto.obj %S/Inputs/entry-mangled.ll
55
# RUN: lld-link /out:%t.exe /entry:main %t.lto.obj

lld/test/COFF/exclude-all.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ _dataSym:
2323
# dllexport directive for some of the symbols. In this case, the dllexported
2424
# symbols are still exported.
2525

26-
# RUN: yaml2obj < %p/Inputs/export.yaml > %t.obj
26+
# RUN: yaml2obj %p/Inputs/export.yaml -o %t.obj
2727
#
2828
# RUN: lld-link -safeseh:no -out:%t.dll -dll %t.obj -lldmingw -exclude-all-symbols -output-def:%t.def
2929
# RUN: llvm-readobj --coff-exports %t.dll | FileCheck -check-prefix=DLLEXPORT %s

0 commit comments

Comments
 (0)