ELF: Include archive names in error messages.
authorRui Ueyama <ruiu@google.com>
Tue, 2 Feb 2016 08:22:41 +0000 (08:22 +0000)
committerRui Ueyama <ruiu@google.com>
Tue, 2 Feb 2016 08:22:41 +0000 (08:22 +0000)
commit71c066d8cfd12a696454377c0592f3697ef207f3
tree3f609a8276736cdb7b39c5bba884b29f91713918
parent82b4288b1a32a781af50760ad12698b64da233e2
ELF: Include archive names in error messages.

If object files are drawn from archive files, the error message should
be something like "conflict symbols in foo.a(bar.o) and baz.o" instead
of "conflict symbols in bar.o and baz.o". This patch implements that.

llvm-svn: 259475
lld/ELF/Driver.cpp
lld/ELF/InputFiles.cpp
lld/ELF/InputFiles.h
lld/ELF/SymbolTable.cpp
lld/ELF/Symbols.cpp
lld/test/ELF/Inputs/conflict.s [new file with mode: 0644]
lld/test/ELF/conflict.s