LLVM  7.0.0
NativeEnumTypes.h
Go to the documentation of this file.
1 //==- NativeEnumTypes.h - Native Type 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_NATIVEENUMTYPES_H
11 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVEENUMTYPES_H
12 
17 
18 #include <vector>
19 
20 namespace llvm {
21 namespace pdb {
22 
23 class NativeSession;
24 
25 class NativeEnumTypes : public IPDBEnumChildren<PDBSymbol> {
26 public:
28  codeview::LazyRandomTypeCollection &TypeCollection,
30 
31  uint32_t getChildCount() const override;
32  std::unique_ptr<PDBSymbol> getChildAtIndex(uint32_t Index) const override;
33  std::unique_ptr<PDBSymbol> getNext() override;
34  void reset() override;
35  NativeEnumTypes *clone() const override;
36 
37 private:
39  const std::vector<codeview::TypeIndex> &Matches,
41 
42  std::vector<codeview::TypeIndex> Matches;
43  uint32_t Index;
44  NativeSession &Session;
46 };
47 
48 } // namespace pdb
49 } // namespace llvm
50 
51 #endif
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
TypeLeafKind
Duplicate copy of the above enum, but using the official CV names.
Definition: CodeView.h:34
NativeEnumTypes * clone() const override
std::unique_ptr< PDBSymbol > getChildAtIndex(uint32_t Index) const override
std::unique_ptr< PDBSymbol > getNext() override
NativeEnumTypes(NativeSession &Session, codeview::LazyRandomTypeCollection &TypeCollection, codeview::TypeLeafKind Kind)
uint32_t getChildCount() const override
Provides amortized O(1) random access to a CodeView type stream.