Use windows path syntax when writing PDB module name.
authorZachary Turner <zturner@google.com>
Fri, 7 Jul 2017 18:46:14 +0000 (18:46 +0000)
committerZachary Turner <zturner@google.com>
Fri, 7 Jul 2017 18:46:14 +0000 (18:46 +0000)
commit448dea419c6cf01e5d692b58ebc36ad5453d2d8f
treee2cfdafe17fa76fb7ccebe2caec8d193613ef7f2
parentc1e93e5fa46772c959a9f5d74dfeb95d3cde4ce3
Use windows path syntax when writing PDB module name.

Without this we would just append whatever the user
wrote on the command line, so if we're in C:\foo
and we run lld-link bar/baz.obj, we would write
C:\foo\bar/baz.obj in various places in the PDB.
MSVC linker does not do this, so we shouldn't either.
This fixes some differences in the diff test, so we
update the test as well.

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

llvm-svn: 307423
lld/COFF/PDB.cpp
lld/test/COFF/pdb-diff.test
llvm/tools/llvm-pdbutil/Diff.cpp
llvm/tools/llvm-pdbutil/DiffPrinter.cpp