[InstCombine] Signed saturation patterns
[llvm-complete.git] / include / llvm / DebugInfo / PDB / Native / SymbolStream.h
blob4fe1bd9734e46d6bb48784eaff340a8edc8416b4
1 //===- SymbolStream.cpp - PDB Symbol Stream Access --------------*- C++ -*-===//
2 //
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
6 //
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"
16 namespace llvm {
17 namespace msf {
18 class MappedBlockStream;
20 namespace pdb {
21 class PDBFile;
23 class SymbolStream {
24 public:
25 SymbolStream(std::unique_ptr<msf::MappedBlockStream> Stream);
26 ~SymbolStream();
27 Error reload();
29 const codeview::CVSymbolArray &getSymbolArray() const {
30 return SymbolRecords;
33 codeview::CVSymbol readRecord(uint32_t Offset) const;
35 iterator_range<codeview::CVSymbolArray::Iterator>
36 getSymbols(bool *HadError) const;
38 Error commit();
40 private:
41 codeview::CVSymbolArray SymbolRecords;
42 std::unique_ptr<msf::MappedBlockStream> Stream;
47 #endif