LLVM 20.0.0git
SymbolStream.h
Go to the documentation of this file.
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//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_DEBUGINFO_PDB_NATIVE_SYMBOLSTREAM_H
10#define LLVM_DEBUGINFO_PDB_NATIVE_SYMBOLSTREAM_H
11
13
14#include "llvm/Support/Error.h"
15
16namespace llvm {
17namespace msf {
18class MappedBlockStream;
19}
20namespace pdb {
21
23public:
24 SymbolStream(std::unique_ptr<msf::MappedBlockStream> Stream);
26 Error reload();
27
29 return SymbolRecords;
30 }
31
33
35 getSymbols(bool *HadError) const;
36
37 Error commit();
38
39private:
40 codeview::CVSymbolArray SymbolRecords;
41 std::unique_ptr<msf::MappedBlockStream> Stream;
42};
43} // namespace pdb
44}
45
46#endif
Lightweight error class with error context and mandatory checking.
Definition: Error.h:160
CVRecord is a fat pointer (base + size pair) to a symbol or type record.
Definition: CVRecord.h:29
A range adaptor for a pair of iterators.
const codeview::CVSymbolArray & getSymbolArray() const
Definition: SymbolStream.h:28
codeview::CVSymbol readRecord(uint32_t Offset) const
iterator_range< codeview::CVSymbolArray::Iterator > getSymbols(bool *HadError) const
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18