[llvm-pdbutil] Dump first section contribution for each module.
authorZachary Turner <zturner@google.com>
Tue, 17 Apr 2018 20:06:43 +0000 (20:06 +0000)
committerZachary Turner <zturner@google.com>
Tue, 17 Apr 2018 20:06:43 +0000 (20:06 +0000)
commitbee6c22414cd084df26621a1edf07ae1baa3002b
treedf51d1fed1bff17fb53560b19ded58caf89bba67
parent96591b6202288ffc3c36ce5215873ede14350819
[llvm-pdbutil] Dump first section contribution for each module.

The DBI stream contains a list of module descriptors.  At the
beginning of each descriptor is a structure representing the first
section contribution in the output file for that module.  LLD
currently doesn't fill out this structure at all, but link.exe
does.  So as a precursor to emitting this data in LLD, we first
need a way to dump it so that it can be checked.

This patch adds support for the dumping, and verifies via a test
that LLD emits bogus information.

llvm-svn: 330208
lld/test/COFF/pdb.test
llvm/include/llvm/DebugInfo/PDB/Native/DbiModuleDescriptor.h
llvm/include/llvm/DebugInfo/PDB/Native/RawTypes.h
llvm/lib/DebugInfo/PDB/Native/DbiModuleDescriptor.cpp
llvm/lib/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.cpp
llvm/test/DebugInfo/PDB/pdbdump-headers.test
llvm/tools/llvm-pdbutil/DumpOutputStyle.cpp