1 //===- SymbolStream.cpp - PDB Symbol Stream Access --------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_DEBUGINFO_PDB_RAW_PDBSYMBOLSTREAM_H
10 #define LLVM_DEBUGINFO_PDB_RAW_PDBSYMBOLSTREAM_H
12 #include "llvm/DebugInfo/CodeView/SymbolRecord.h"
14 #include "llvm/Support/Error.h"
18 class MappedBlockStream;
25 SymbolStream(std::unique_ptr<msf::MappedBlockStream> Stream);
29 const codeview::CVSymbolArray &getSymbolArray() const {
33 codeview::CVSymbol readRecord(uint32_t Offset) const;
35 iterator_range<codeview::CVSymbolArray::Iterator>
36 getSymbols(bool *HadError) const;
41 codeview::CVSymbolArray SymbolRecords;
42 std::unique_ptr<msf::MappedBlockStream> Stream;