OSDN Git Service

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)
commitf8cc5477f0710a159d2eed63f96c288c1a3e7740
treec84b0937ed8738ce4c4f92a2f19bd0674411be3f
parentb85b70f834a5825ef903a7b2a3bb843860c839cd
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307423 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-pdbutil/Diff.cpp
tools/llvm-pdbutil/DiffPrinter.cpp