22 using namespace llvm::msf;
23 using namespace llvm::support;
24 using namespace llvm::pdb;
26 SymbolStream::SymbolStream(std::unique_ptr<MappedBlockStream> Stream)
27 : Stream(std::move(Stream)) {}
34 if (
auto EC = Reader.
readArray(SymbolRecords, Stream->getLength()))
iterator_range< T > make_range(T x, T y)
Convenience function for iterating over sub-ranges.
static ErrorSuccess success()
Create a success value.
A range adaptor for a pair of iterators.
iterator_range< codeview::CVSymbolArray::Iterator > getSymbols(bool *HadError) const
Lightweight error class with error context and mandatory checking.
Iterator begin(bool *HadError=nullptr) const
Provides read only access to a subclass of BinaryStream.
Error readArray(ArrayRef< T > &Array, uint32_t NumElements)
Get a reference to a NumElements element array of objects of type T from the underlying stream as if ...