Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:43:44

0001 //==- NativeEnumTypes.h - Native Type Enumerator impl ------------*- C++ -*-==//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLVM_DEBUGINFO_PDB_NATIVE_NATIVEENUMTYPES_H
0010 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVEENUMTYPES_H
0011 
0012 #include "llvm/DebugInfo/CodeView/CodeView.h"
0013 #include "llvm/DebugInfo/CodeView/TypeIndex.h"
0014 #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
0015 #include "llvm/DebugInfo/PDB/PDBSymbol.h"
0016 
0017 #include <vector>
0018 
0019 namespace llvm {
0020 namespace codeview {
0021 class LazyRandomTypeCollection;
0022 }
0023 namespace pdb {
0024 
0025 class NativeSession;
0026 
0027 class NativeEnumTypes : public IPDBEnumChildren<PDBSymbol> {
0028 public:
0029   NativeEnumTypes(NativeSession &Session,
0030                   codeview::LazyRandomTypeCollection &TypeCollection,
0031                   std::vector<codeview::TypeLeafKind> Kinds);
0032 
0033   NativeEnumTypes(NativeSession &Session,
0034                   std::vector<codeview::TypeIndex> Indices);
0035 
0036   uint32_t getChildCount() const override;
0037   std::unique_ptr<PDBSymbol> getChildAtIndex(uint32_t Index) const override;
0038   std::unique_ptr<PDBSymbol> getNext() override;
0039   void reset() override;
0040 
0041 private:
0042   std::vector<codeview::TypeIndex> Matches;
0043   uint32_t Index;
0044   NativeSession &Session;
0045 };
0046 
0047 } // namespace pdb
0048 } // namespace llvm
0049 
0050 #endif