Define DbiStreamBuilder::addDbgStream to add stream.
authorRui Ueyama <ruiu@google.com>
Mon, 10 Oct 2016 23:35:36 +0000 (23:35 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 10 Oct 2016 23:35:36 +0000 (23:35 +0000)
commit70edd9e41d637596ef93e2e6c1935dabe8c24182
tree44edb1bc83bbb4d4009b7b141395fa50e5f0c18d
parentdfaf9ccacfa5ef6cfb7a907aba35a1f2069f976f
Define DbiStreamBuilder::addDbgStream to add stream.

Previously, there is no way to create a stream other than pre-defined
special stream such as DBI or IPI. This patch adds a new method,
addDbgStream, to add a debug stream to a PDB file.

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

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