1 //==- NativeEnumTypes.h - Native Type Enumerator impl ------------*- C++ -*-==//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_DEBUGINFO_PDB_NATIVE_NATIVEENUMTYPES_H
11 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVEENUMTYPES_H
13 #include "llvm/DebugInfo/CodeView/LazyRandomTypeCollection.h"
14 #include "llvm/DebugInfo/CodeView/TypeRecord.h"
15 #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
16 #include "llvm/DebugInfo/PDB/PDBSymbol.h"
25 class NativeEnumTypes : public IPDBEnumChildren<PDBSymbol> {
27 NativeEnumTypes(NativeSession &Session,
28 codeview::LazyRandomTypeCollection &TypeCollection,
29 codeview::TypeLeafKind Kind);
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;
38 NativeEnumTypes(NativeSession &Session,
39 const std::vector<codeview::TypeIndex> &Matches,
40 codeview::TypeLeafKind Kind);
42 std::vector<codeview::TypeIndex> Matches;
44 NativeSession &Session;
45 codeview::TypeLeafKind Kind;