Define DbiStreamBuilder::addSectionContribs.
authorRui Ueyama <ruiu@google.com>
Fri, 11 Nov 2016 23:41:13 +0000 (23:41 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 11 Nov 2016 23:41:13 +0000 (23:41 +0000)
commitf7c9c3234c68dc4ba844c1556b5e8397b35eaec7
treeab10c95eba967c54e4f2b5a8d5ef4ef0073b2ab4
parent9fdbec870c0f3a0c7aa8185f577bf01e4abc5b14
Define DbiStreamBuilder::addSectionContribs.

This patch defines a new function to add a SectionContribs stream
to a PDB file. Unlike SectionMap, SectionContribs contains a list
of input sections as opposed to output sections.

Note that this patch needs improving because currently we do not
set Module field in SectionContribs entries. In a follow-up patch,
I'll add Modules and then fix it after that.

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

llvm-svn: 286677
llvm/include/llvm/DebugInfo/PDB/Raw/DbiStreamBuilder.h
llvm/lib/DebugInfo/PDB/Raw/DbiStreamBuilder.cpp