]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/include/llvm/DebugInfo/PDB/Native/NativeSymbolEnumerator.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm / include / llvm / DebugInfo / PDB / Native / NativeSymbolEnumerator.h
1 //===- NativeSymbolEnumerator.h - info about enumerator values --*- 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_NATIVESYMBOLENUMERATOR_H
11 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVESYMBOLENUMERATOR_H
12
13 #include "llvm/DebugInfo/CodeView/CodeView.h"
14 #include "llvm/DebugInfo/PDB/Native/NativeRawSymbol.h"
15 #include "llvm/DebugInfo/PDB/Native/NativeSession.h"
16
17 namespace llvm {
18 namespace pdb {
19 class NativeTypeEnum;
20
21 class NativeSymbolEnumerator : public NativeRawSymbol {
22 public:
23   NativeSymbolEnumerator(NativeSession &Session, SymIndexId Id,
24                          const NativeTypeEnum &Parent,
25                          codeview::EnumeratorRecord Record);
26
27   ~NativeSymbolEnumerator() override;
28
29   void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields,
30             PdbSymbolIdField RecurseIdFields) const override;
31
32   SymIndexId getClassParentId() const override;
33   SymIndexId getLexicalParentId() const override;
34   std::string getName() const override;
35   SymIndexId getTypeId() const override;
36   PDB_DataKind getDataKind() const override;
37   PDB_LocType getLocationType() const override;
38   bool isConstType() const override;
39   bool isVolatileType() const override;
40   bool isUnalignedType() const override;
41   Variant getValue() const override;
42
43 protected:
44   const NativeTypeEnum &Parent;
45   codeview::EnumeratorRecord Record;
46 };
47
48 } // namespace pdb
49 } // namespace llvm
50
51 #endif // LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEENUM_H