diff options
Diffstat (limited to 'lld/test/ELF/lto/thinlto-object-suffix-replace.ll')
-rw-r--r-- | lld/test/ELF/lto/thinlto-object-suffix-replace.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/test/ELF/lto/thinlto-object-suffix-replace.ll b/lld/test/ELF/lto/thinlto-object-suffix-replace.ll index 3ee492d54ca..05ce942c70f 100644 --- a/lld/test/ELF/lto/thinlto-object-suffix-replace.ll +++ b/lld/test/ELF/lto/thinlto-object-suffix-replace.ll @@ -9,7 +9,7 @@ ; First perform the thin link on the normal bitcode file, and save the ; resulting index. -; RUN: ld.lld -m elf_x86_64 --plugin-opt=thinlto-index-only -shared %t1.o -o %t3 +; RUN: ld.lld --plugin-opt=thinlto-index-only -shared %t1.o -o %t3 ; RUN: cp %t1.o.thinlto.bc %t1.o.thinlto.bc.orig ; Next perform the thin link on the minimized bitcode file, and compare dump @@ -17,21 +17,21 @@ ; RUN: rm -f %t1.o.thinlto.bc ; Make sure it isn't inadvertently using the regular bitcode file. ; RUN: rm -f %t1.o -; RUN: ld.lld -m elf_x86_64 --plugin-opt=thinlto-index-only \ +; RUN: ld.lld --plugin-opt=thinlto-index-only \ ; RUN: --plugin-opt=thinlto-object-suffix-replace=".thinlink.bc;.o" \ ; RUN: -shared %t1.thinlink.bc -o %t3 ; RUN: diff %t1.o.thinlto.bc.orig %t1.o.thinlto.bc ; Ensure lld generates error if object suffix replace option does not have 'old;new' format ; RUN: rm -f %t1.o.thinlto.bc -; RUN: not ld.lld -m elf_x86_64 --plugin-opt=thinlto-index-only \ +; RUN: not ld.lld --plugin-opt=thinlto-index-only \ ; RUN: --plugin-opt=thinlto-object-suffix-replace="abc:def" -shared %t1.thinlink.bc \ ; RUN: -o %t3 2>&1 | FileCheck %s --check-prefix=ERR1 ; ERR1: --plugin-opt=thinlto-object-suffix-replace= expects 'old;new' format, but got abc:def ; Ensure lld generates error if old suffix doesn't exist in file name ; RUN: rm -f %t1.o -; RUN: not ld.lld -m elf_x86_64 --plugin-opt=thinlto-index-only \ +; RUN: not ld.lld --plugin-opt=thinlto-index-only \ ; RUN: --plugin-opt=thinlto-object-suffix-replace=".abc;.o" -shared %t1.thinlink.bc \ ; RUN: -o %t3 2>&1 | FileCheck %s --check-prefix=ERR2 ; ERR2: error: -thinlto-object-suffix-replace=.abc;.o was given, but {{.*}} does not end with the suffix |