[ELF] For VS-style diagnostics, prefer printing full paths in the header.
authorIgor Kudrin <ikudrin@accesssoftek.com>
Fri, 9 Aug 2019 08:29:03 +0000 (08:29 +0000)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Fri, 9 Aug 2019 08:29:03 +0000 (08:29 +0000)
commitb65016ddac32dbfbdae8e3afb292275ddf7bd1a7
treec0e5899b31825115c6c8f5c19f8b3b5f2cc082b0
parente1a5f668b3b517cea34b389c505264510b45ecf9
[ELF] For VS-style diagnostics, prefer printing full paths in the header.

The filename part in the message header is used by Visual Studio
to fill Error List so that a user can click on an item and jump
to the mentioned location. If we use only the name of a source file
and not the full path, Visual Studio might be unable to find the right
file or, even worse, show a wrong one.

Differential Revision: https://reviews.llvm.org/D65875

llvm-svn: 368409
lld/Common/ErrorHandler.cpp
lld/test/ELF/Inputs/vs-diagnostics-duplicate3.s
lld/test/ELF/vs-diagnostics-duplicate-split.s
lld/test/ELF/vs-diagnostics-duplicate.s
lld/test/ELF/vs-diagnostics-dynamic-relocation.s
lld/test/ELF/vs-diagnostics-undefined-hidden.s
lld/test/ELF/vs-diagnostics-undefined-symbol-3.s