OSDN Git Service

Fix some incorrect fields in our generated PDBs.
authorZachary Turner <zturner@google.com>
Mon, 16 Apr 2018 16:27:49 +0000 (16:27 +0000)
committerZachary Turner <zturner@google.com>
Mon, 16 Apr 2018 16:27:49 +0000 (16:27 +0000)
commitb1bd1633f1a0a8bf99aa4ad7a95db80aad0faf22
treec7483d5abd9a44c6248239fbae933afbe0de3a53
parent2be99d04c02277cec54fefedb35da7daf36e8c13
Fix some incorrect fields in our generated PDBs.

Most of these are pretty trivial and obvious. Setting the toolchain
version to 14.11 is perhaps a little questionable, but we've been bitten
in the past where one of our version fields sidn't match MSVC's, and I
definitely don't want to go through that diagnosis again as it was
pretty time consuming and hard to track down.

I found all of these by using llvm-pdbutil export to dump the dbi and
pdb streams to a file, then using fc followed by llvm-pdbutil explain to
explain the mismatched bytes.

There are still some more, these are just the low hanging fruit.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330130 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h
lib/DebugInfo/PDB/Native/DbiStreamBuilder.cpp