[Alignment][NFC] Convert StoreInst to MaybeAlign
[llvm-complete.git] / include / llvm / DebugInfo / PDB / Native / NativeSymbolEnumerator.h
blob0635850978991fa96a07fcf990e20be467b0ff14
1 //===- NativeSymbolEnumerator.h - info about enumerator values --*- 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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_DEBUGINFO_PDB_NATIVE_NATIVESYMBOLENUMERATOR_H
10 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVESYMBOLENUMERATOR_H
12 #include "llvm/DebugInfo/CodeView/CodeView.h"
13 #include "llvm/DebugInfo/PDB/Native/NativeRawSymbol.h"
14 #include "llvm/DebugInfo/PDB/Native/NativeSession.h"
16 namespace llvm {
17 namespace pdb {
18 class NativeTypeEnum;
20 class NativeSymbolEnumerator : public NativeRawSymbol {
21 public:
22 NativeSymbolEnumerator(NativeSession &Session, SymIndexId Id,
23 const NativeTypeEnum &Parent,
24 codeview::EnumeratorRecord Record);
26 ~NativeSymbolEnumerator() override;
28 void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields,
29 PdbSymbolIdField RecurseIdFields) const override;
31 SymIndexId getClassParentId() const override;
32 SymIndexId getLexicalParentId() const override;
33 std::string getName() const override;
34 SymIndexId getTypeId() const override;
35 PDB_DataKind getDataKind() const override;
36 PDB_LocType getLocationType() const override;
37 bool isConstType() const override;
38 bool isVolatileType() const override;
39 bool isUnalignedType() const override;
40 Variant getValue() const override;
42 protected:
43 const NativeTypeEnum &Parent;
44 codeview::EnumeratorRecord Record;
47 } // namespace pdb
48 } // namespace llvm
50 #endif // LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEENUM_H