[LLD][COFF] Fix /linkrepro with output options that take a filename or path
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>
Tue, 23 Apr 2019 12:30:49 +0000 (12:30 +0000)
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>
Tue, 23 Apr 2019 12:30:49 +0000 (12:30 +0000)
commit2769d58628f948b55891a5b3c1073080415f6c17
tree1db04b17bd416035e432fd5614f73e485e358990
parent98c858a23be102964b6e61d58749c56bbe2dec5f
[LLD][COFF] Fix /linkrepro with output options that take a filename or path

The following options: /pdb, /out or /implib now emit in the repro.tar/response.txt only a filename stripped from its path, to avoid non-existent paths on the reproducer's machine.

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

llvm-svn: 358980
lld/COFF/Driver.cpp
lld/test/COFF/linkrepro-pdb.test