1 //===- NativeTypeVTShape.h - info about virtual table shape ------*- 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_NATIVETYPEVTSHAPE_H
10 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEVTSHAPE_H
11 
12 #include "llvm/DebugInfo/CodeView/TypeIndex.h"
13 #include "llvm/DebugInfo/CodeView/TypeRecord.h"
14 #include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
15 #include "llvm/DebugInfo/PDB/Native/NativeRawSymbol.h"
16 #include "llvm/DebugInfo/PDB/PDBTypes.h"
17 
18 namespace llvm {
19 namespace pdb {
20 class NativeSession;
21 
22 class NativeTypeVTShape : public NativeRawSymbol {
23 public:
24   // Create a pointer record for a non-simple type.
25   NativeTypeVTShape(NativeSession &Session, SymIndexId Id,
26                     codeview::TypeIndex TI, codeview::VFTableShapeRecord SR);
27 
28   ~NativeTypeVTShape() override;
29 
30   void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields,
31             PdbSymbolIdField RecurseIdFields) const override;
32 
33   bool isConstType() const override;
34   bool isVolatileType() const override;
35   bool isUnalignedType() const override;
36   uint32_t getCount() const override;
37 
38 protected:
39   codeview::TypeIndex TI;
40   codeview::VFTableShapeRecord Record;
41 };
42 
43 } // namespace pdb
44 } // namespace llvm
45 
46 #endif // LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEVTSHAPE_H
47