]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/include/llvm/DebugInfo/PDB/Native/NativeEnumGlobals.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm / include / llvm / DebugInfo / PDB / Native / NativeEnumGlobals.h
1 //==- NativeEnumGlobals.h - Native Global 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_NATIVEENUMGLOBALS_H
11 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVEENUMGLOBALS_H
12
13 #include "llvm/DebugInfo/CodeView/SymbolRecord.h"
14 #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
15 #include "llvm/DebugInfo/PDB/PDBSymbol.h"
16
17 #include <vector>
18
19 namespace llvm {
20 namespace pdb {
21
22 class NativeSession;
23
24 class NativeEnumGlobals : public IPDBEnumChildren<PDBSymbol> {
25 public:
26   NativeEnumGlobals(NativeSession &Session,
27                     std::vector<codeview::SymbolKind> Kinds);
28
29   uint32_t getChildCount() const override;
30   std::unique_ptr<PDBSymbol> getChildAtIndex(uint32_t Index) const override;
31   std::unique_ptr<PDBSymbol> getNext() override;
32   void reset() override;
33
34 private:
35   std::vector<uint32_t> MatchOffsets;
36   uint32_t Index;
37   NativeSession &Session;
38 };
39
40 } // namespace pdb
41 } // namespace llvm
42
43 #endif