diff options
| author | Zachary Turner <zturner@google.com> | 2017-02-28 17:49:34 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2017-02-28 17:49:34 +0000 |
| commit | d0b44fa788d1d6b66ef03130e24c536113c3ab97 (patch) | |
| tree | 0aa1cc8c068b60f27534d428da1404eb2b949bca /llvm/lib/DebugInfo/PDB | |
| parent | 159f3bb80e8e85bed3426cf015c765a842383322 (diff) | |
| download | bcm5719-llvm-d0b44fa788d1d6b66ef03130e24c536113c3ab97.tar.gz bcm5719-llvm-d0b44fa788d1d6b66ef03130e24c536113c3ab97.zip | |
[PDB] Add BinaryStreamError.
This migrates the stream code away from MSFError to using its
own custom Error class.
llvm-svn: 296494
Diffstat (limited to 'llvm/lib/DebugInfo/PDB')
| -rw-r--r-- | llvm/lib/DebugInfo/PDB/Native/PDBFile.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/PDBFile.cpp b/llvm/lib/DebugInfo/PDB/Native/PDBFile.cpp index 03257c40829..b2c8ac30e54 100644 --- a/llvm/lib/DebugInfo/PDB/Native/PDBFile.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/PDBFile.cpp @@ -396,11 +396,10 @@ bool PDBFile::hasStringTable() { return IS->getNamedStreamIndex("/names") < getNumStreams(); } -/// Wrapper around MappedBlockStream::createIndexedStream() -/// that checks if a stream with that index actually exists. -/// If it does not, the return value will have an MSFError with -/// code msf_error_code::no_stream. Else, the return value will -/// contain the stream returned by createIndexedStream(). +/// Wrapper around MappedBlockStream::createIndexedStream() that checks if a +/// stream with that index actually exists. If it does not, the return value +/// will have an MSFError with code msf_error_code::no_stream. Else, the return +/// value will contain the stream returned by createIndexedStream(). Expected<std::unique_ptr<MappedBlockStream>> PDBFile::safelyCreateIndexedStream(const MSFLayout &Layout, BinaryStreamRef MsfData, |

