[ELF] - Report proper error message about mixing bitcode files.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 11 Jul 2018 12:32:00 +0000 (12:32 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 11 Jul 2018 12:32:00 +0000 (12:32 +0000)
commitfd6af6dc98d3c87311768ad9c6e486822060817a
tree9cb2c816f78c44dc399efbb0584dbb3553d5d005
parent26ddf274d79e33d4440e1983aa2ceffd3addbc84
[ELF] - Report proper error message about mixing bitcode files.

If we have 2 bitcode inputs for different targets, LLD would
print "<internal>" instead of the name of one of the files.

The patch adds a test and fixes this issue.

llvm-svn: 336794
lld/ELF/SymbolTable.cpp
lld/test/ELF/lto/Inputs/i386-empty.ll [new file with mode: 0644]
lld/test/ELF/lto/mix-platforms2.ll [new file with mode: 0644]