[lld] r331671 - Add test to ensure lld writes linked files to linked objects file for ThinLTO Indexing Only option.
Rumeet Dhindsa via llvm-commits
llvm-commits at lists.llvm.org
Mon May 7 13:28:02 PDT 2018
Author: rdhindsa
Date: Mon May 7 13:28:02 2018
New Revision: 331671
URL: http://llvm.org/viewvc/llvm-project?rev=331671&view=rev
Log:
Add test to ensure lld writes linked files to linked objects file for ThinLTO Indexing Only option.
Differential Revision: https://reviews.llvm.org/D46542
Modified:
lld/trunk/test/ELF/lto/thinlto.ll
Modified: lld/trunk/test/ELF/lto/thinlto.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/thinlto.ll?rev=331671&r1=331670&r2=331671&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/thinlto.ll (original)
+++ lld/trunk/test/ELF/lto/thinlto.ll Mon May 7 13:28:02 2018
@@ -26,6 +26,13 @@
; RUN: ld.lld -m elf_x86_64 --plugin-opt=thinlto-index-only -shared %t.o %t4.o --start-lib %t2.o --end-lib -o %t5
; RUN: ls %t2.o.thinlto.bc
+; Ensure lld writes linked files to linked objects file
+; RUN: ld.lld -m elf_x86_64 --plugin-opt=thinlto-index-only=%tlinkedobjfile -shared %t.o %t2.o %t4.o -o %t5
+; RUN: cat %tlinkedobjfile 2>&1 | FileCheck %s --check-prefix=IN1
+; IN1: {{.*}}thinlto.ll.tmp.o
+; IN1-NEXT: {{.*}}thinlto.ll.tmp2.o
+; IN1-NEXT: {{.*}}thinlto.ll.tmp4.o
+
; Ensure lld generates error if unable to write to index file
; RUN: rm -f %t4.o.thinlto.bc
; RUN: touch %t4.o.thinlto.bc
More information about the llvm-commits
mailing list