LLVM  7.0.0
NativeEnumModules.h
Go to the documentation of this file.
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 
16 namespace llvm {
17 namespace pdb {
18 
19 class DbiModuleList;
20 class NativeSession;
21 
22 class NativeEnumModules : public IPDBEnumChildren<PDBSymbol> {
23 public:
24  NativeEnumModules(NativeSession &Session, const DbiModuleList &Modules,
25  uint32_t Index = 0);
26 
27  uint32_t getChildCount() const override;
28  std::unique_ptr<PDBSymbol> getChildAtIndex(uint32_t Index) const override;
29  std::unique_ptr<PDBSymbol> getNext() override;
30  void reset() override;
31  NativeEnumModules *clone() const override;
32 
33 private:
34  NativeSession &Session;
35  const DbiModuleList &Modules;
36  uint32_t Index;
37 };
38 }
39 }
40 
41 #endif
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
std::unique_ptr< PDBSymbol > getNext() override
uint32_t getChildCount() const override
NativeEnumModules(NativeSession &Session, const DbiModuleList &Modules, uint32_t Index=0)
std::unique_ptr< PDBSymbol > getChildAtIndex(uint32_t Index) const override
NativeEnumModules * clone() const override