diff options
author | Zachary Turner <zturner@google.com> | 2016-05-28 05:21:57 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-05-28 05:21:57 +0000 |
commit | 0d43c1c339ab5532c4527e92dc852b6e0f3f1788 (patch) | |
tree | 321e2a7cb797ccc76f6d806872e8a12ee8fd475b /llvm/lib/DebugInfo/PDB/Raw/ModStream.cpp | |
parent | 9a9a3169e35306f396e2d690b157ad03a9521650 (diff) | |
download | bcm5719-llvm-0d43c1c339ab5532c4527e92dc852b6e0f3f1788.tar.gz bcm5719-llvm-0d43c1c339ab5532c4527e92dc852b6e0f3f1788.zip |
[pdb] Finish conversion to zero copy pdb access.
This converts remaining uses of ByteStream, which was still
left in the symbol stream and type stream, to using the new
StreamInterface zero-copy classes.
RecordIterator is finally deleted, so this is the only way left
now. Additionally, more error checking is added when iterating
the various streams.
With this, the transition to zero copy pdb access is complete.
llvm-svn: 271101
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/ModStream.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Raw/ModStream.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/ModStream.cpp b/llvm/lib/DebugInfo/PDB/Raw/ModStream.cpp index 404208a6487..88c6b7c2444 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/ModStream.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/ModStream.cpp @@ -9,7 +9,6 @@ #include "llvm/DebugInfo/PDB/Raw/ModStream.h" -#include "llvm/DebugInfo/CodeView/RecordIterator.h" #include "llvm/DebugInfo/CodeView/StreamReader.h" #include "llvm/DebugInfo/PDB/Raw/ModInfo.h" #include "llvm/DebugInfo/PDB/Raw/RawError.h" @@ -58,6 +57,7 @@ Error ModStream::reload() { return Error::success(); } -iterator_range<codeview::CVSymbolArray::Iterator> ModStream::symbols() const { +iterator_range<codeview::CVSymbolArray::Iterator> +ModStream::symbols(bool *HadError) const { return llvm::make_range(SymbolsSubstream.begin(), SymbolsSubstream.end()); } |