LLVM  14.0.0git
NativeEnumTypes.h
Go to the documentation of this file.
1 //==- NativeEnumTypes.h - Native Type Enumerator impl ------------*- C++ -*-==//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_DEBUGINFO_PDB_NATIVE_NATIVEENUMTYPES_H
10 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVEENUMTYPES_H
11 
16 
17 #include <vector>
18 
19 namespace llvm {
20 namespace pdb {
21 
22 class NativeSession;
23 
24 class NativeEnumTypes : public IPDBEnumChildren<PDBSymbol> {
25 public:
27  codeview::LazyRandomTypeCollection &TypeCollection,
28  std::vector<codeview::TypeLeafKind> Kinds);
29 
31  std::vector<codeview::TypeIndex> Indices);
32 
33  uint32_t getChildCount() const override;
34  std::unique_ptr<PDBSymbol> getChildAtIndex(uint32_t Index) const override;
35  std::unique_ptr<PDBSymbol> getNext() override;
36  void reset() override;
37 
38 private:
39  std::vector<codeview::TypeIndex> Matches;
40  uint32_t Index;
41  NativeSession &Session;
42 };
43 
44 } // namespace pdb
45 } // namespace llvm
46 
47 #endif
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::pdb::NativeEnumTypes::reset
void reset() override
Definition: NativeEnumTypes.cpp:70
llvm::pdb::NativeEnumTypes
Definition: NativeEnumTypes.h:24
llvm::pdb::NativeEnumTypes::NativeEnumTypes
NativeEnumTypes(NativeSession &Session, codeview::LazyRandomTypeCollection &TypeCollection, std::vector< codeview::TypeLeafKind > Kinds)
Definition: NativeEnumTypes.cpp:23
llvm::pdb::NativeEnumTypes::getNext
std::unique_ptr< PDBSymbol > getNext() override
Definition: NativeEnumTypes.cpp:66
LazyRandomTypeCollection.h
llvm::codeview::LazyRandomTypeCollection
Provides amortized O(1) random access to a CodeView type stream.
Definition: LazyRandomTypeCollection.h:49
PDBSymbol.h
TypeRecord.h
llvm::pdb::NativeEnumTypes::getChildCount
uint32_t getChildCount() const override
Definition: NativeEnumTypes.cpp:54
IPDBEnumChildren.h
uint32_t
llvm::pdb::NativeSession
Definition: NativeSession.h:28
llvm::pdb::IPDBEnumChildren
Definition: IPDBEnumChildren.h:19
llvm::pdb::NativeEnumTypes::getChildAtIndex
std::unique_ptr< PDBSymbol > getChildAtIndex(uint32_t Index) const override
Definition: NativeEnumTypes.cpp:58