LLVM  9.0.0svn
NativeTypeEnum.h
Go to the documentation of this file.
1 //===- NativeTypeEnum.h - info about enum type ------------------*- 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_NATIVETYPEENUM_H
10 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEENUM_H
11 
12 #include "llvm/ADT/Optional.h"
17 
18 namespace llvm {
19 namespace pdb {
20 
21 class NativeTypeBuiltin;
22 
24 public:
27 
30  codeview::ModifierRecord Modifier);
31  ~NativeTypeEnum() override;
32 
33  void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields,
34  PdbSymbolIdField RecurseIdFields) const override;
35 
36  std::unique_ptr<IPDBEnumSymbols>
37  findChildren(PDB_SymType Type) const override;
38 
39  PDB_BuiltinType getBuiltinType() const override;
40  PDB_SymType getSymTag() const override;
41  SymIndexId getUnmodifiedTypeId() const override;
42  bool hasConstructor() const override;
43  bool hasAssignmentOperator() const override;
44  bool hasCastOperator() const override;
45  uint64_t getLength() const override;
46  std::string getName() const override;
47  bool isConstType() const override;
48  bool isVolatileType() const override;
49  bool isUnalignedType() const override;
50  bool isNested() const override;
51  bool hasOverloadedOperator() const override;
52  bool hasNestedTypes() const override;
53  bool isIntrinsic() const override;
54  bool isPacked() const override;
55  bool isScoped() const override;
56  SymIndexId getTypeId() const override;
57  bool isRefUdt() const override;
58  bool isValueUdt() const override;
59  bool isInterfaceUdt() const override;
60 
62  const codeview::EnumRecord &getEnumRecord() const { return *Record; }
63 
64 protected:
67  NativeTypeEnum *UnmodifiedType = nullptr;
69 };
70 
71 } // namespace pdb
72 } // namespace llvm
73 
74 #endif // LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEENUM_H
bool isVolatileType() const override
This class represents lattice values for constants.
Definition: AllocatorList.h:23
std::string getName() const override
NativeTypeEnum(NativeSession &Session, SymIndexId Id, codeview::TypeIndex TI, codeview::EnumRecord Record)
const codeview::EnumRecord & getEnumRecord() const
NativeTypeEnum * UnmodifiedType
bool hasConstructor() const override
const NativeTypeBuiltin & getUnderlyingBuiltinType() const
PDB_SymType getSymTag() const override
PDB_BuiltinType getBuiltinType() const override
SymIndexId getUnmodifiedTypeId() const override
SymIndexId getTypeId() const override
Optional< codeview::ModifierRecord > Modifiers
void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields, PdbSymbolIdField RecurseIdFields) const override
A 32-bit type reference.
Definition: TypeIndex.h:95
bool isScoped() const override
std::unique_ptr< IPDBEnumSymbols > findChildren(PDB_SymType Type) const override
PDB_SymType
These values correspond to the SymTagEnum enumeration, and are documented here: https://msdn.microsoft.com/en-us/library/bkedss5f.aspx.
Definition: PDBTypes.h:182
bool isInterfaceUdt() const override
bool isConstType() const override
The instances of the Type class are immutable: once they are created, they are never changed...
Definition: Type.h:45
bool isValueUdt() const override
bool hasAssignmentOperator() const override
bool isNested() const override
bool hasNestedTypes() const override
bool hasOverloadedOperator() const override
bool hasCastOperator() const override
PDB_BuiltinType
These values correspond to the Basictype enumeration, and are documented here: https://msdn.microsoft.com/en-us/library/4szdtzc3.aspx.
Definition: PDBTypes.h:274
codeview::TypeIndex Index
bool isPacked() const override
Definition: JSON.cpp:597
uint64_t getLength() const override
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:45
bool isIntrinsic() const override
Optional< codeview::EnumRecord > Record
bool isRefUdt() const override
bool isUnalignedType() const override