DIAEnumSourceFiles.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //==- DIAEnumSourceFiles.h - DIA Source File Enumerator impl -----*- 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. #ifndef LLVM_DEBUGINFO_PDB_DIA_DIAENUMSOURCEFILES_H
  10. #define LLVM_DEBUGINFO_PDB_DIA_DIAENUMSOURCEFILES_H
  11. #include "DIASupport.h"
  12. #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
  13. namespace llvm {
  14. class DIASession;
  15. class DIAEnumSourceFiles : public IPDBEnumChildren<IPDBSourceFile> {
  16. public:
  17. explicit DIAEnumSourceFiles(const DIASession &PDBSession,
  18. CComPtr<IDiaEnumSourceFiles> DiaEnumerator);
  19. uint32_t getChildCount() const override;
  20. ChildTypePtr getChildAtIndex(uint32_t Index) const override;
  21. ChildTypePtr getNext() override;
  22. void reset() override;
  23. DIAEnumSourceFiles *clone() const override;
  24. private:
  25. const DIASession &Session;
  26. CComPtr<IDiaEnumSourceFiles> Enumerator;
  27. };
  28. }
  29. #endif