diff options
| author | Vitaly Buka <vitalybuka@google.com> | 2018-02-22 19:06:15 +0000 |
|---|---|---|
| committer | Vitaly Buka <vitalybuka@google.com> | 2018-02-22 19:06:15 +0000 |
| commit | a139b69e125cc91e32a4c852a7b3268a732f7df0 (patch) | |
| tree | 18081726dbaf792a7c635ff9a246c4fb0828b37d /llvm/test | |
| parent | ffbf7dbeff9973204870a1cf2da7acd5294ea21c (diff) | |
| download | bcm5719-llvm-a139b69e125cc91e32a4c852a7b3268a732f7df0.tar.gz bcm5719-llvm-a139b69e125cc91e32a4c852a7b3268a732f7df0.zip | |
[ThinLTO] Always create linked objects file for --thinlto-index-only=
Summary:
ThinLTO indexing may decide to skip all objects. If we don't write something to
the list build system may consider this as failure or linker can reuse a file
from the previews build.
Reviewers: pcc, tejohnson
Subscribers: mehdi_amini, inglorion, eraman, hiraditya, llvm-commits
Differential Revision: https://reviews.llvm.org/D43415
llvm-svn: 325819
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/tools/gold/X86/thinlto_no_objects.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/tools/gold/X86/thinlto_no_objects.ll b/llvm/test/tools/gold/X86/thinlto_no_objects.ll new file mode 100644 index 00000000000..554ecb9345a --- /dev/null +++ b/llvm/test/tools/gold/X86/thinlto_no_objects.ll @@ -0,0 +1,18 @@ +; Check that thinlto-index-only= always creates linked objects file, even +; if nothing to add there. + +; Non-ThinLTO file should not get into list of linked objects. +; RUN: opt %s -o %t.o + +; RUN: rm -f %t3 +; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \ +; RUN: --plugin-opt=thinlto \ +; RUN: --plugin-opt=thinlto-index-only=%t3 \ +; RUN: -o %t5 \ +; RUN: %t.o + +; RUN: cat %t3 | count 0 + +target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" +target triple = "x86_64-unknown-linux-gnu" + |

