OSDN Git Service

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)
commitcccd305c0d05da191811e1b15b419ef7ac731881
treecf21e1f765ee0356ac259e243f363c60fee92a84
parent6687aabcf555bf38c9029fdf03c217fe17c70a3c
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

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