1 //==- NativeEnumModules.h - Native Module 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 
10 #ifndef LLVM_DEBUGINFO_PDB_NATIVE_NATIVEENUMMODULES_H
11 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVEENUMMODULES_H
12 
13 #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
14 #include "llvm/DebugInfo/PDB/PDBSymbol.h"
15 namespace llvm {
16 namespace pdb {
17 
18 class NativeSession;
19 
20 class NativeEnumModules : public IPDBEnumChildren<PDBSymbol> {
21 public:
22   NativeEnumModules(NativeSession &Session, uint32_t Index = 0);
23 
24   uint32_t getChildCount() const override;
25   std::unique_ptr<PDBSymbol> getChildAtIndex(uint32_t Index) const override;
26   std::unique_ptr<PDBSymbol> getNext() override;
27   void reset() override;
28 
29 private:
30   NativeSession &Session;
31   uint32_t Index;
32 };
33 }
34 }
35 
36 #endif
37