forked from OSchip/llvm-project
[ELF] - LTO: add test for createEmptyIndex.
We have a following comment for createEmptyIndex caller code: // If LazyObjFile has not been added to link, emit empty index files. // This is needed because this is what GNU gold plugin does and we have a // distributed build system that depends on that behavior. Though createEmptyIndex() itself (https://github.com/llvm-mirror/lld/blob/master/ELF/LTO.cpp#L202) is never called in our test cases. Patch adds a test. llvm-svn: 336270
This commit is contained in:
parent
29f37fbb8b
commit
6906f4ec9c
|
@ -29,6 +29,11 @@
|
|||
; RUN: ls %t2.o.thinlto.bc
|
||||
; RUN: not test -e %t4
|
||||
|
||||
; Test that LLD generates an empty index even for lazy object file that is not added to link.
|
||||
; RUN: rm -f %t1.o.thinlto.bc %t3
|
||||
; RUN: ld.lld --plugin-opt=thinlto-index-only -shared %t2.o --start-lib %t1.o --end-lib -o %t3
|
||||
; RUN: ls %t1.o.thinlto.bc
|
||||
|
||||
; NM: T f
|
||||
|
||||
; The backend index for this module contains summaries from itself and
|
||||
|
|
Loading…
Reference in New Issue