[PATCH] D46542: Add test case for Thinlto Linked Objects file

Rumeet Dhindsa via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 7 13:32:12 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL331671: Add test to ensure lld writes linked files to linked objects file for ThinLTO… (authored by rdhindsa, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D46542?vs=145512&id=145534#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D46542

Files:
  lld/trunk/test/ELF/lto/thinlto.ll


Index: lld/trunk/test/ELF/lto/thinlto.ll
===================================================================
--- lld/trunk/test/ELF/lto/thinlto.ll
+++ lld/trunk/test/ELF/lto/thinlto.ll
@@ -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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46542.145534.patch
Type: text/x-patch
Size: 814 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180507/59a5dee2/attachment.bin>


More information about the llvm-commits mailing list