OSDN Git Service

[PDB] More changes to bring lld PDBs to parity with MSVC.
authorZachary Turner <zturner@google.com>
Fri, 7 Jul 2017 20:25:39 +0000 (20:25 +0000)
committerZachary Turner <zturner@google.com>
Fri, 7 Jul 2017 20:25:39 +0000 (20:25 +0000)
commit9657506451e35920c4b4780627e363de12f2fea4
treeeb79c3b076ad6c809e8c4445b47c0136ce2b7cf5
parentf3a2f4ad1648687cc337ba4c8b8d4c9a102f3657
[PDB] More changes to bring lld PDBs to parity with MSVC.

1) Don't write a /src/headerblock stream.  This appears to be
   written conditionally by MSVC, but it's not clear what the
   condition is.  For now, just remove it since we dont' know
   what it is anyway and the particular pdb we've checked in
   for the test doesn't have one.
2) Write a valid timestamp for the PDB file signature.  This
   leads to non-reproducible builds, but it matches the default
   behavior of link, so it should be out default as well.  If
   we need reproducibility, we should add a separate command
   line option for it that is off by default.
3) Write an empty FPO stream.  MSVC seems to always write an
   FPO stream.  This change makes the stream directory match
   up, although we still need to make the contents of the FPO
   stream match.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307436 91177308-0d34-0410-b5e6-96231b3b80d8
lib/DebugInfo/PDB/Native/NamedStreamMap.cpp
lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp