LLVM  8.0.1
NativeEnumGlobals.h
Go to the documentation of this file.
1 //==- NativeEnumGlobals.h - Native Global 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_NATIVEENUMGLOBALS_H
11 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVEENUMGLOBALS_H
12 
16 
17 #include <vector>
18 
19 namespace llvm {
20 namespace pdb {
21 
22 class NativeSession;
23 
24 class NativeEnumGlobals : public IPDBEnumChildren<PDBSymbol> {
25 public:
27  std::vector<codeview::SymbolKind> Kinds);
28 
29  uint32_t getChildCount() const override;
30  std::unique_ptr<PDBSymbol> getChildAtIndex(uint32_t Index) const override;
31  std::unique_ptr<PDBSymbol> getNext() override;
32  void reset() override;
33 
34 private:
35  std::vector<uint32_t> MatchOffsets;
36  uint32_t Index;
37  NativeSession &Session;
38 };
39 
40 } // namespace pdb
41 } // namespace llvm
42 
43 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:24
NativeEnumGlobals(NativeSession &Session, std::vector< codeview::SymbolKind > Kinds)
uint32_t getChildCount() const override
std::unique_ptr< PDBSymbol > getChildAtIndex(uint32_t Index) const override
std::unique_ptr< PDBSymbol > getNext() override