diff options
author | Zachary Turner <zturner@google.com> | 2017-07-07 20:25:39 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-07-07 20:25:39 +0000 |
commit | 3a11fdf8ce5099db375c0f0f2c210818013429a5 (patch) | |
tree | cc043bf6f33b39b86ecc678beeed57406c39c23e /llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp | |
parent | e3872003d0129dcb8324e7025012e4201bf364f4 (diff) | |
download | bcm5719-llvm-3a11fdf8ce5099db375c0f0f2c210818013429a5.tar.gz bcm5719-llvm-3a11fdf8ce5099db375c0f0f2c210818013429a5.zip |
[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.
llvm-svn: 307436
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp b/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp index 12b0c3b36c1..e8ec96ecafe 100644 --- a/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp @@ -96,8 +96,6 @@ Expected<msf::MSFLayout> PDBFileBuilder::finalizeMsfLayout() { return std::move(EC); if (auto EC = addNamedStream("/LinkInfo", 0)) return std::move(EC); - if (auto EC = addNamedStream("/src/headerblock", 0)) - return std::move(EC); if (Info) { if (auto EC = Info->finalizeMsfLayout()) |