LLVM  7.0.0
DIAEnumInjectedSources.h
Go to the documentation of this file.
1 //==- DIAEnumInjectedSources.h - DIA Injected Sources Enumerator -*- C++ -*-==//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLVM_DEBUGINFO_PDB_DIA_DIAENUMINJECTEDSOURCES_H
11 #define LLVM_DEBUGINFO_PDB_DIA_DIAENUMINJECTEDSOURCES_H
12 
13 #include "DIASupport.h"
16 
17 namespace llvm {
18 namespace pdb {
19 class DIASession;
20 
21 class DIAEnumInjectedSources : public IPDBEnumChildren<IPDBInjectedSource> {
22 public:
23  explicit DIAEnumInjectedSources(
24  const DIASession &PDBSession,
25  CComPtr<IDiaEnumInjectedSources> DiaEnumerator);
26 
27  uint32_t getChildCount() const override;
29  ChildTypePtr getNext() override;
30  void reset() override;
31  DIAEnumInjectedSources *clone() const override;
32 
33 private:
34  const DIASession &Session;
35  CComPtr<IDiaEnumInjectedSources> Enumerator;
36 };
37 } // namespace pdb
38 } // namespace llvm
39 
40 #endif // LLVM_DEBUGINFO_PDB_DIA_DIAENUMINJECTEDSOURCES_H
std::unique_ptr< IPDBInjectedSource > ChildTypePtr
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
DIAEnumInjectedSources(const DIASession &PDBSession, CComPtr< IDiaEnumInjectedSources > DiaEnumerator)
DIAEnumInjectedSources * clone() const override
ChildTypePtr getChildAtIndex(uint32_t Index) const override