diff options
author | Zachary Turner <zturner@google.com> | 2017-07-31 19:36:08 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-07-31 19:36:08 +0000 |
commit | 8d927b6bf908503e7d2f7aca22d6fec2a15fd44b (patch) | |
tree | f9b536787bc48c6dc3ef8d83743d660af7106f01 /llvm/lib/DebugInfo/PDB/Native/DbiStreamBuilder.cpp | |
parent | fb82a59a8cc21778bebd6931acaa8e3daf35268c (diff) | |
download | bcm5719-llvm-8d927b6bf908503e7d2f7aca22d6fec2a15fd44b.tar.gz bcm5719-llvm-8d927b6bf908503e7d2f7aca22d6fec2a15fd44b.zip |
[lld/pdb] Add an empty globals stream.
We don't write any actual symbols to this stream yet, but for
now we just create the stream and hook it up to the appropriate
places and give it a valid header.
Differential Revision: https://reviews.llvm.org/D35290
llvm-svn: 309608
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/DbiStreamBuilder.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Native/DbiStreamBuilder.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/DbiStreamBuilder.cpp b/llvm/lib/DebugInfo/PDB/Native/DbiStreamBuilder.cpp index 25076e40fc9..0fe583bb038 100644 --- a/llvm/lib/DebugInfo/PDB/Native/DbiStreamBuilder.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/DbiStreamBuilder.cpp @@ -49,6 +49,10 @@ void DbiStreamBuilder::setSectionMap(ArrayRef<SecMapEntry> SecMap) { SectionMap = SecMap; } +void DbiStreamBuilder::setGlobalsStreamIndex(uint32_t Index) { + GlobalsStreamIndex = Index; +} + void DbiStreamBuilder::setSymbolRecordStreamIndex(uint32_t Index) { SymRecordStreamIndex = Index; } @@ -270,7 +274,7 @@ Error DbiStreamBuilder::finalize() { H->SymRecordStreamIndex = SymRecordStreamIndex; H->PublicSymbolStreamIndex = PublicsStreamIndex; H->MFCTypeServerIndex = kInvalidStreamIndex; - H->GlobalSymbolStreamIndex = kInvalidStreamIndex; + H->GlobalSymbolStreamIndex = GlobalsStreamIndex; Header = H; return Error::success(); |