LLVM  14.0.0git
NativeTypeVTShape.cpp
Go to the documentation of this file.
2 
3 using namespace llvm;
4 using namespace llvm::pdb;
5 
6 // Create a pointer record for a non-simple type.
10  : NativeRawSymbol(Session, PDB_SymType::VTableShape, Id), TI(TI),
11  Record(std::move(SR)) {}
12 
14 
15 void NativeTypeVTShape::dump(raw_ostream &OS, int Indent,
16  PdbSymbolIdField ShowIdFields,
17  PdbSymbolIdField RecurseIdFields) const {
18  NativeRawSymbol::dump(OS, Indent, ShowIdFields, RecurseIdFields);
19 
20  dumpSymbolIdField(OS, "lexicalParentId", 0, Indent, Session,
21  PdbSymbolIdField::LexicalParent, ShowIdFields,
22  RecurseIdFields);
23  dumpSymbolField(OS, "count", getCount(), Indent);
24  dumpSymbolField(OS, "constType", isConstType(), Indent);
25  dumpSymbolField(OS, "unalignedType", isUnalignedType(), Indent);
26  dumpSymbolField(OS, "volatileType", isVolatileType(), Indent);
27 }
28 
29 bool NativeTypeVTShape::isConstType() const { return false; }
30 
31 bool NativeTypeVTShape::isVolatileType() const { return false; }
32 
33 bool NativeTypeVTShape::isUnalignedType() const { return false; }
34 
35 uint32_t NativeTypeVTShape::getCount() const { return Record.Slots.size(); }
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AllocatorList.h:23
llvm::codeview::VFTableShapeRecord
Definition: TypeRecord.h:552
llvm::pdb::NativeTypeVTShape::dump
void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields, PdbSymbolIdField RecurseIdFields) const override
Definition: NativeTypeVTShape.cpp:15
llvm::pdb::PDB_SymType
PDB_SymType
These values correspond to the SymTagEnum enumeration, and are documented here: https://msdn....
Definition: PDBTypes.h:243
llvm::pdb::NativeTypeVTShape::isUnalignedType
bool isUnalignedType() const override
Definition: NativeTypeVTShape.cpp:33
llvm::pdb::PdbSymbolIdField::LexicalParent
@ LexicalParent
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:53
llvm::pdb::NativeTypeVTShape::isVolatileType
bool isVolatileType() const override
Definition: NativeTypeVTShape.cpp:31
llvm::pdb::PDB_SymType::VTableShape
@ VTableShape
llvm::pdb
Definition: ConcreteSymbolEnumerator.h:20
llvm::pdb::NativeTypeVTShape::~NativeTypeVTShape
~NativeTypeVTShape() override
Definition: NativeTypeVTShape.cpp:13
llvm::pdb::dumpSymbolField
void dumpSymbolField(raw_ostream &OS, StringRef Name, T Value, int Indent)
Definition: PDBExtras.h:47
llvm::pdb::dumpSymbolIdField
void dumpSymbolIdField(raw_ostream &OS, StringRef Name, SymIndexId Value, int Indent, const IPDBSession &Session, PdbSymbolIdField FieldId, PdbSymbolIdField ShowFlags, PdbSymbolIdField RecurseFlags)
Definition: PDBSymbol.cpp:202
llvm::move
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Definition: STLExtras.h:1658
llvm::Record
Definition: Record.h:1486
llvm::pdb::NativeTypeVTShape::NativeTypeVTShape
NativeTypeVTShape(NativeSession &Session, SymIndexId Id, codeview::TypeIndex TI, codeview::VFTableShapeRecord SR)
Definition: NativeTypeVTShape.cpp:7
NativeTypeVTShape.h
llvm::pdb::NativeTypeVTShape::isConstType
bool isConstType() const override
Definition: NativeTypeVTShape.cpp:29
llvm::pdb::NativeTypeVTShape::getCount
uint32_t getCount() const override
Definition: NativeTypeVTShape.cpp:35
uint32_t
std
Definition: BitVector.h:838
llvm::pdb::NativeRawSymbol::dump
void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields, PdbSymbolIdField RecurseIdFields) const override
Definition: NativeRawSymbol.cpp:22
llvm::pdb::NativeSession
Definition: NativeSession.h:28
llvm::pdb::PdbSymbolIdField
PdbSymbolIdField
Definition: IPDBRawSymbol.h:24
llvm::codeview::TypeIndex
A 32-bit type reference.
Definition: TypeIndex.h:96
llvm::pdb::NativeRawSymbol::Session
NativeSession & Session
Definition: NativeRawSymbol.h:232
llvm::AMDGPU::VGPRIndexMode::Id
Id
Definition: SIDefines.h:232
llvm::pdb::NativeRawSymbol
Definition: NativeRawSymbol.h:21