1 //===- NativeTypeVTShape.h - info about virtual table shape ------*- C++-*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEVTSHAPE_H
11 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEVTSHAPE_H
13 #include "llvm/ADT/Optional.h"
14 #include "llvm/DebugInfo/CodeView/CodeView.h"
15 #include "llvm/DebugInfo/CodeView/TypeRecord.h"
16 #include "llvm/DebugInfo/PDB/Native/NativeRawSymbol.h"
17 #include "llvm/DebugInfo/PDB/Native/NativeSession.h"
22 class NativeTypeVTShape : public NativeRawSymbol {
24 // Create a pointer record for a non-simple type.
25 NativeTypeVTShape(NativeSession &Session, SymIndexId Id,
26 codeview::TypeIndex TI, codeview::VFTableShapeRecord SR);
28 ~NativeTypeVTShape() override;
30 void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields,
31 PdbSymbolIdField RecurseIdFields) const override;
33 bool isConstType() const override;
34 bool isVolatileType() const override;
35 bool isUnalignedType() const override;
36 uint32_t getCount() const override;
39 codeview::TypeIndex TI;
40 codeview::VFTableShapeRecord Record;
46 #endif // LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEVTSHAPE_H