diff options
author | Reid Kleckner <rnk@google.com> | 2017-07-27 18:25:59 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-07-27 18:25:59 +0000 |
commit | eacdf04fdda7c6156b4e063cfce28f643493f76e (patch) | |
tree | 9cb8acc5960748191701aeeaa8bdc391a36756c5 /llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp | |
parent | ac84850ea620df7f799c38f5a4f2c788eabbea78 (diff) | |
download | llvm-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.cpp | 5 |
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; } |