aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-07-27 18:25:59 +0000
committerReid Kleckner <rnk@google.com>2017-07-27 18:25:59 +0000
commiteacdf04fdda7c6156b4e063cfce28f643493f76e (patch)
tree9cb8acc5960748191701aeeaa8bdc391a36756c5 /llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
parentac84850ea620df7f799c38f5a4f2c788eabbea78 (diff)
downloadllvm-eacdf04fdda7c6156b4e063cfce28f643493f76e.zip
llvm-eacdf04fdda7c6156b4e063cfce28f643493f76e.tar.gz
llvm-eacdf04fdda7c6156b4e063cfce28f643493f76e.tar.bz2
[PDB] Write public symbol records and the publics hash table
Summary: MSVC link.exe records all external symbol names in the publics stream. It provides similar functionality to an ELF .symtab. Reviewers: zturner, ruiu Subscribers: hiraditya, llvm-commits Differential Revision: https://reviews.llvm.org/D35871 llvm-svn: 309303
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp b/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
index 9f35fd7..21e5e4b 100644
--- a/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
+++ b/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
@@ -212,8 +212,11 @@ Error PDBFileBuilder::commit(StringRef Filename) {
if (Publics) {
auto PS = WritableMappedBlockStream::createIndexedStream(
Layout, Buffer, Publics->getStreamIndex(), Allocator);
+ auto PRS = WritableMappedBlockStream::createIndexedStream(
+ Layout, Buffer, Publics->getRecordStreamIdx(), Allocator);
BinaryStreamWriter PSWriter(*PS);
- if (auto EC = Publics->commit(PSWriter))
+ BinaryStreamWriter RecWriter(*PRS);
+ if (auto EC = Publics->commit(PSWriter, RecWriter))
return EC;
}