Files
clang-p2996/llvm/test/tools/gold/X86/thinlto_no_objects.ll
Vitaly Buka a139b69e12 [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
2018-02-22 19:06:15 +00:00

19 lines
506 B
LLVM

; 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"