LLVM  8.0.1
DIAEnumSectionContribs.h
Go to the documentation of this file.
1 //==- DIAEnumSectionContribs.h --------------------------------- -*- 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_DIAENUMSECTIONCONTRIBS_H
11 #define LLVM_DEBUGINFO_PDB_DIA_DIAENUMSECTIONCONTRIBS_H
12 
13 #include "DIASupport.h"
16 
17 namespace llvm {
18 namespace pdb {
19 class DIASession;
20 
21 class DIAEnumSectionContribs : public IPDBEnumChildren<IPDBSectionContrib> {
22 public:
23  explicit DIAEnumSectionContribs(
24  const DIASession &PDBSession,
25  CComPtr<IDiaEnumSectionContribs> DiaEnumerator);
26 
27  uint32_t getChildCount() const override;
29  ChildTypePtr getNext() override;
30  void reset() override;
31 
32 private:
33  const DIASession &Session;
34  CComPtr<IDiaEnumSectionContribs> Enumerator;
35 };
36 } // namespace pdb
37 } // namespace llvm
38 
39 #endif // LLVM_DEBUGINFO_PDB_DIA_DIAENUMSECTIONCONTRIBS_H
std::unique_ptr< IPDBSectionContrib > ChildTypePtr
This class represents lattice values for constants.
Definition: AllocatorList.h:24
ChildTypePtr getChildAtIndex(uint32_t Index) const override
DIAEnumSectionContribs(const DIASession &PDBSession, CComPtr< IDiaEnumSectionContribs > DiaEnumerator)