Define DbiStreamBuilder::addSectionMap.
authorRui Ueyama <ruiu@google.com>
Mon, 31 Oct 2016 17:38:56 +0000 (17:38 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 31 Oct 2016 17:38:56 +0000 (17:38 +0000)
commitddc79225c37898625fcbffaff5a6f0e06ac58370
treef06f27d63067c5e01d5fd1baf8fc97b4a63c1646
parentaacc03c918c835cb87225990551c3ed1d5271b66
Define DbiStreamBuilder::addSectionMap.

This change enables LLD to construct a Section Map stream in a PDB file.
I do not understand all these fields in the Section Map yet, but it seems
like a copy of a COFF section header in another format.

With this patch, DbiStreamBuilder can emit a Section Map which
llvm-pdbdump can dump.

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

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