DIAEnumSymbols.h 1.0 KB

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