[PDB] Fix an issue writing the publics stream.
authorZachary Turner <zturner@google.com>
Wed, 9 Aug 2017 04:23:59 +0000 (04:23 +0000)
committerZachary Turner <zturner@google.com>
Wed, 9 Aug 2017 04:23:59 +0000 (04:23 +0000)
commit5448dabbdd956c39af9fbbc424289e1dba00f8e8
treee50fd5246dc00a3adc50dca9a7e79f7b28a4faba
parent946204c83e74434568d4fbf6174d2da48215efd4
[PDB] Fix an issue writing the publics stream.

In the refactor to merge the publics and globals stream, a bug
was introduced that wrote the wrong value for one of the fields
of the PublicsStreamHeader.  This caused debugging in WinDbg
to break.

We had no way of dumping any of these fields, so in addition to
fixing the bug I've added dumping support for them along with a
test that verifies the correct value is written.

llvm-svn: 310439
lld/test/COFF/pdb-publics-import.test
lld/test/COFF/pdb.test
llvm/include/llvm/DebugInfo/PDB/Native/GlobalsStream.h
llvm/include/llvm/DebugInfo/PDB/Native/PublicsStream.h
llvm/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp
llvm/lib/DebugInfo/PDB/Native/PublicsStream.cpp
llvm/tools/llvm-pdbutil/DumpOutputStyle.cpp