LLVM 22.0.0git
InjectedSourceStream.h
Go to the documentation of this file.
1//===- InjectedSourceStream.h - PDB Headerblock 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_INJECTEDSOURCESTREAM_H
10#define LLVM_DEBUGINFO_PDB_NATIVE_INJECTEDSOURCESTREAM_H
11
14#include "llvm/Support/Error.h"
15
16namespace llvm {
17namespace pdb {
20class PDBStringTable;
21
23public:
24 InjectedSourceStream(std::unique_ptr<msf::MappedBlockStream> Stream);
25 Error reload(const PDBStringTable &Strings);
26
28 const_iterator begin() const { return InjectedSourceTable.begin(); }
29 const_iterator end() const { return InjectedSourceTable.end(); }
30
31 uint32_t size() const { return InjectedSourceTable.size(); }
32
33private:
34 std::unique_ptr<msf::MappedBlockStream> Stream;
35
36 const SrcHeaderBlockHeader* Header;
37 HashTable<SrcHeaderBlockEntry> InjectedSourceTable;
38};
39}
40} // namespace llvm
41
42#endif
Lightweight error class with error context and mandatory checking.
Definition Error.h:159
HashTableIterator< ValueT > const_iterator
Definition HashTable.h:111
Error reload(const PDBStringTable &Strings)
HashTable< SrcHeaderBlockEntry >::const_iterator const_iterator
InjectedSourceStream(std::unique_ptr< msf::MappedBlockStream > Stream)
This is an optimization pass for GlobalISel generic memory operations.
A single file record entry within the /src/headerblock stream.
Definition RawTypes.h:331
The header preceding the /src/headerblock stream.
Definition RawTypes.h:321