OSDN Git Service

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)
commit9b108814a3d26246c3ab6b1d8687195d98ee893f
tree660eb814a3a8c507989002460a766c9f51464f31
parentc6acb5115ab975ed4b82a1c4ccf03901843ac702
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

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