LLVM  15.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 codeview {
21 class LazyRandomTypeCollection;
22 }
23 namespace pdb {
24 
25 class NativeSession;
26 
27 class NativeEnumTypes : public IPDBEnumChildren<PDBSymbol> {
28 public:
30  codeview::LazyRandomTypeCollection &TypeCollection,
31  std::vector<codeview::TypeLeafKind> Kinds);
32 
34  std::vector<codeview::TypeIndex> Indices);
35 
36  uint32_t getChildCount() const override;
37  std::unique_ptr<PDBSymbol> getChildAtIndex(uint32_t Index) const override;
38  std::unique_ptr<PDBSymbol> getNext() override;
39  void reset() override;
40 
41 private:
42  std::vector<codeview::TypeIndex> Matches;
44  NativeSession &Session;
45 };
46 
47 } // namespace pdb
48 } // namespace llvm
49 
50 #endif
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:17
llvm::pdb::NativeEnumTypes::reset
void reset() override
Definition: NativeEnumTypes.cpp:73
llvm::pdb::NativeEnumTypes
Definition: NativeEnumTypes.h:27
llvm::pdb::NativeEnumTypes::NativeEnumTypes
NativeEnumTypes(NativeSession &Session, codeview::LazyRandomTypeCollection &TypeCollection, std::vector< codeview::TypeLeafKind > Kinds)
Definition: NativeEnumTypes.cpp:26
llvm::pdb::NativeEnumTypes::getNext
std::unique_ptr< PDBSymbol > getNext() override
Definition: NativeEnumTypes.cpp:69
llvm::codeview::LazyRandomTypeCollection
Provides amortized O(1) random access to a CodeView type stream.
Definition: LazyRandomTypeCollection.h:49
llvm::dwarf::Index
Index
Definition: Dwarf.h:472
PDBSymbol.h
CodeView.h
llvm::pdb::NativeEnumTypes::getChildCount
uint32_t getChildCount() const override
Definition: NativeEnumTypes.cpp:57
IPDBEnumChildren.h
uint32_t
TypeIndex.h
llvm::pdb::NativeSession
Definition: NativeSession.h:32
llvm::pdb::IPDBEnumChildren
Definition: IPDBEnumChildren.h:20
llvm::pdb::NativeEnumTypes::getChildAtIndex
std::unique_ptr< PDBSymbol > getChildAtIndex(uint32_t Index) const override
Definition: NativeEnumTypes.cpp:61