xref: /freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/DIA/DIAEnumSectionContribs.h (revision 0b57cec536236d46e3dba9bd041533462f33dbb7)
1 //==- DIAEnumSectionContribs.h --------------------------------- -*- 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_DIA_DIAENUMSECTIONCONTRIBS_H
10 #define LLVM_DEBUGINFO_PDB_DIA_DIAENUMSECTIONCONTRIBS_H
11 
12 #include "DIASupport.h"
13 #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
14 #include "llvm/DebugInfo/PDB/IPDBSectionContrib.h"
15 
16 namespace llvm {
17 namespace pdb {
18 class DIASession;
19 
20 class DIAEnumSectionContribs : public IPDBEnumChildren<IPDBSectionContrib> {
21 public:
22   explicit DIAEnumSectionContribs(
23       const DIASession &PDBSession,
24       CComPtr<IDiaEnumSectionContribs> DiaEnumerator);
25 
26   uint32_t getChildCount() const override;
27   ChildTypePtr getChildAtIndex(uint32_t Index) const override;
28   ChildTypePtr getNext() override;
29   void reset() override;
30 
31 private:
32   const DIASession &Session;
33   CComPtr<IDiaEnumSectionContribs> Enumerator;
34 };
35 } // namespace pdb
36 } // namespace llvm
37 
38 #endif // LLVM_DEBUGINFO_PDB_DIA_DIAENUMSECTIONCONTRIBS_H
39