LLVM  14.0.0git
NativeEnumInjectedSources.h
Go to the documentation of this file.
1 //==- NativeEnumInjectedSources.cpp - Native Injected Source Enumerator --*-==//
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_NATIVEENUMINJECTEDSOURCES_H
10 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVEENUMINJECTEDSOURCES_H
11 
15 
16 namespace llvm {
17 namespace pdb {
18 
19 class InjectedSourceStream;
20 class PDBFile;
21 class PDBStringTable;
22 
23 class NativeEnumInjectedSources : public IPDBEnumChildren<IPDBInjectedSource> {
24 public:
26  const PDBStringTable &Strings);
27 
28  uint32_t getChildCount() const override;
29  std::unique_ptr<IPDBInjectedSource>
30  getChildAtIndex(uint32_t Index) const override;
31  std::unique_ptr<IPDBInjectedSource> getNext() override;
32  void reset() override;
33 
34 private:
35  PDBFile &File;
36  const InjectedSourceStream &Stream;
37  const PDBStringTable &Strings;
39 };
40 
41 } // namespace pdb
42 } // namespace llvm
43 
44 #endif
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::pdb::NativeEnumInjectedSources::getNext
std::unique_ptr< IPDBInjectedSource > getNext() override
Definition: NativeEnumInjectedSources.cpp:112
llvm::pdb::NativeEnumInjectedSources::reset
void reset() override
Definition: NativeEnumInjectedSources.cpp:118
llvm::pdb::NativeEnumInjectedSources::getChildAtIndex
std::unique_ptr< IPDBInjectedSource > getChildAtIndex(uint32_t Index) const override
Definition: NativeEnumInjectedSources.cpp:105
llvm::pdb::NativeEnumInjectedSources::getChildCount
uint32_t getChildCount() const override
Definition: NativeEnumInjectedSources.cpp:100
llvm::pdb::InjectedSourceStream
Definition: InjectedSourceStream.h:23
llvm::pdb::NativeEnumInjectedSources::NativeEnumInjectedSources
NativeEnumInjectedSources(PDBFile &File, const InjectedSourceStream &IJS, const PDBStringTable &Strings)
Definition: NativeEnumInjectedSources.cpp:95
Index
uint32_t Index
Definition: ELFObjHandler.cpp:84
IPDBEnumChildren.h
llvm::pdb::PDBStringTable
Definition: PDBStringTable.h:32
IPDBInjectedSource.h
InjectedSourceStream.h
uint32_t
llvm::pdb::NativeEnumInjectedSources
Definition: NativeEnumInjectedSources.h:23
llvm::pdb::InjectedSourceStream::const_iterator
HashTable< SrcHeaderBlockEntry >::const_iterator const_iterator
Definition: InjectedSourceStream.h:28
llvm::pdb::PDBFile
Definition: PDBFile.h:42
llvm::pdb::IPDBEnumChildren
Definition: IPDBEnumChildren.h:19