summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/Raw/ModStream.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-06-02 05:07:49 +0000
committerZachary Turner <zturner@google.com>2016-06-02 05:07:49 +0000
commit93839cb4acfb0dcbdd749f774fd7647ef37b4353 (patch)
treead2da721b1f515175d610627dcc26f6b3cf95af4 /llvm/lib/DebugInfo/PDB/Raw/ModStream.cpp
parent7cf29e3468f7de38399abc756727f826ec6c6475 (diff)
downloadbcm5719-llvm-93839cb4acfb0dcbdd749f774fd7647ef37b4353.tar.gz
bcm5719-llvm-93839cb4acfb0dcbdd749f774fd7647ef37b4353.zip
[pdb] Parse and dump section map and section contribs
Differential Revision: http://reviews.llvm.org/D20876 Reviewed By: rnk, ruiu llvm-svn: 271488
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/ModStream.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/Raw/ModStream.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/ModStream.cpp b/llvm/lib/DebugInfo/PDB/Raw/ModStream.cpp
index 8b7a71508f8..b7204cb5afa 100644
--- a/llvm/lib/DebugInfo/PDB/Raw/ModStream.cpp
+++ b/llvm/lib/DebugInfo/PDB/Raw/ModStream.cpp
@@ -45,6 +45,10 @@ Error ModStream::reload() {
return EC;
if (auto EC = Reader.readStreamRef(C13LinesSubstream, C13Size))
return EC;
+ ArrayRef<uint8_t> LineBytes;
+ codeview::StreamReader LinesReader(C13LinesSubstream);
+ if (auto EC = LinesReader.readBytes(LineBytes, C13LinesSubstream.getLength()))
+ return EC;
uint32_t GlobalRefsSize;
if (auto EC = Reader.readInteger(GlobalRefsSize))
OpenPOWER on IntegriCloud