[LLD/PDB] Emit first section contribution for DBI Module Descriptor.
authorZachary Turner <zturner@google.com>
Fri, 20 Apr 2018 18:00:46 +0000 (18:00 +0000)
committerZachary Turner <zturner@google.com>
Fri, 20 Apr 2018 18:00:46 +0000 (18:00 +0000)
commit194be871b9f903f75c427f022875adf19244bf6e
tree1ebc675bda5e9f395945898c50c88aebf700c2eb
parent358af38d37da648a0829d554c5242b68e7eb5002
[LLD/PDB] Emit first section contribution for DBI Module Descriptor.

Part of the DBI stream is a list of variable length structures
describing each module that contributes to the final executable.

One member of this structure is a section contribution entry that
describes the first section contribution in the output file for
the given module.

We have been leaving this structure unpopulated until now, so with
this patch it is now filled out correctly.

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

llvm-svn: 330457
lld/COFF/PDB.cpp
lld/test/COFF/pdb.test
llvm/include/llvm/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.h
llvm/lib/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.cpp