NativeEnumSymbols.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //==- NativeEnumSymbols.h - Native Symbols Enumerator impl -------*- 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_NATIVE_NATIVEENUMSYMBOLS_H
  14. #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVEENUMSYMBOLS_H
  15. #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
  16. #include "llvm/DebugInfo/PDB/PDBSymbol.h"
  17. #include "llvm/DebugInfo/PDB/PDBTypes.h"
  18. #include <vector>
  19. namespace llvm {
  20. namespace pdb {
  21. class NativeSession;
  22. class NativeEnumSymbols : public IPDBEnumChildren<PDBSymbol> {
  23. public:
  24. NativeEnumSymbols(NativeSession &Session, std::vector<SymIndexId> Symbols);
  25. uint32_t getChildCount() const override;
  26. std::unique_ptr<PDBSymbol> getChildAtIndex(uint32_t Index) const override;
  27. std::unique_ptr<PDBSymbol> getNext() override;
  28. void reset() override;
  29. private:
  30. std::vector<SymIndexId> Symbols;
  31. uint32_t Index;
  32. NativeSession &Session;
  33. };
  34. } // namespace pdb
  35. } // namespace llvm
  36. #endif
  37. #ifdef __GNUC__
  38. #pragma GCC diagnostic pop
  39. #endif