diff options
| author | Zachary Turner <zturner@google.com> | 2017-06-23 20:18:38 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2017-06-23 20:18:38 +0000 |
| commit | 6c3e41bbd3ac6eff9a16e1722427d67867b2194b (patch) | |
| tree | 376811d8ee52000fb4ad40945c20aa1a9a9d77f4 /llvm/lib/DebugInfo | |
| parent | 7e66b6b8ea727ccd4dfcc899453262eb00098037 (diff) | |
| download | bcm5719-llvm-6c3e41bbd3ac6eff9a16e1722427d67867b2194b.tar.gz bcm5719-llvm-6c3e41bbd3ac6eff9a16e1722427d67867b2194b.zip | |
[llvm-pdbutil] Dump raw bytes of pdb name map.
This patch dumps the raw bytes of the pdb name map which contains
the mapping of stream name to stream index for the string table
and other reserved streams.
llvm-svn: 306148
Diffstat (limited to 'llvm/lib/DebugInfo')
| -rw-r--r-- | llvm/lib/DebugInfo/PDB/Native/InfoStream.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/InfoStream.cpp b/llvm/lib/DebugInfo/PDB/Native/InfoStream.cpp index a3979d480bf..21b66b3e7bc 100644 --- a/llvm/lib/DebugInfo/PDB/Native/InfoStream.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/InfoStream.cpp @@ -57,6 +57,10 @@ Error InfoStream::reload() { uint32_t NewOffset = Reader.getOffset(); NamedStreamMapByteSize = NewOffset - Offset; + Reader.setOffset(Offset); + if (auto EC = Reader.readSubstream(SubNamedStreams, NamedStreamMapByteSize)) + return EC; + bool Stop = false; while (!Stop && !Reader.empty()) { PdbRaw_FeatureSig Sig; @@ -129,3 +133,7 @@ ArrayRef<PdbRaw_FeatureSig> InfoStream::getFeatureSignatures() const { const NamedStreamMap &InfoStream::getNamedStreams() const { return NamedStreams; } + +BinarySubstreamRef InfoStream::getNamedStreamsBuffer() const { + return SubNamedStreams; +} |

