DIAEnumSectionContribs.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //==- DIAEnumSectionContribs.h --------------------------------- -*- C++ -*-==//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_DEBUGINFO_PDB_DIA_DIAENUMSECTIONCONTRIBS_H
  14. #define LLVM_DEBUGINFO_PDB_DIA_DIAENUMSECTIONCONTRIBS_H
  15. #include "DIASupport.h"
  16. #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
  17. #include "llvm/DebugInfo/PDB/IPDBSectionContrib.h"
  18. namespace llvm {
  19. namespace pdb {
  20. class DIASession;
  21. class DIAEnumSectionContribs : public IPDBEnumChildren<IPDBSectionContrib> {
  22. public:
  23. explicit DIAEnumSectionContribs(
  24. const DIASession &PDBSession,
  25. CComPtr<IDiaEnumSectionContribs> DiaEnumerator);
  26. uint32_t getChildCount() const override;
  27. ChildTypePtr getChildAtIndex(uint32_t Index) const override;
  28. ChildTypePtr getNext() override;
  29. void reset() override;
  30. private:
  31. const DIASession &Session;
  32. CComPtr<IDiaEnumSectionContribs> Enumerator;
  33. };
  34. } // namespace pdb
  35. } // namespace llvm
  36. #endif // LLVM_DEBUGINFO_PDB_DIA_DIAENUMSECTIONCONTRIBS_H
  37. #ifdef __GNUC__
  38. #pragma GCC diagnostic pop
  39. #endif