[ELF] - LTO: add test for createEmptyIndex.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 4 Jul 2018 13:36:45 +0000 (13:36 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 4 Jul 2018 13:36:45 +0000 (13:36 +0000)
commit6906f4ec9c5f3dab89f46974ba0132c6c593509a
tree174fc9d71db0d02d9f627b34ae82f493b767543a
parent29f37fbb8b3dc877f7ea77a6c065d4fa9b9dba16
[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
lld/test/ELF/lto/thinlto-index-only.ll