LLVM 20.0.0git
NativeTypeVTShape.cpp
Go to the documentation of this file.
4
5using namespace llvm;
6using namespace llvm::pdb;
7
8// Create a pointer record for a non-simple type.
12 : NativeRawSymbol(Session, PDB_SymType::VTableShape, Id), TI(TI),
13 Record(std::move(SR)) {}
14
16
18 PdbSymbolIdField ShowIdFields,
19 PdbSymbolIdField RecurseIdFields) const {
20 NativeRawSymbol::dump(OS, Indent, ShowIdFields, RecurseIdFields);
21
22 dumpSymbolIdField(OS, "lexicalParentId", 0, Indent, Session,
24 RecurseIdFields);
25 dumpSymbolField(OS, "count", getCount(), Indent);
26 dumpSymbolField(OS, "constType", isConstType(), Indent);
27 dumpSymbolField(OS, "unalignedType", isUnalignedType(), Indent);
28 dumpSymbolField(OS, "volatileType", isVolatileType(), Indent);
29}
30
31bool NativeTypeVTShape::isConstType() const { return false; }
32
33bool NativeTypeVTShape::isVolatileType() const { return false; }
34
35bool NativeTypeVTShape::isUnalignedType() const { return false; }
36
37uint32_t NativeTypeVTShape::getCount() const { return Record.Slots.size(); }
raw_pwrite_stream & OS
A 32-bit type reference.
Definition: TypeIndex.h:96
void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields, PdbSymbolIdField RecurseIdFields) const override
void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields, PdbSymbolIdField RecurseIdFields) const override
bool isUnalignedType() const override
bool isConstType() const override
NativeTypeVTShape(NativeSession &Session, SymIndexId Id, codeview::TypeIndex TI, codeview::VFTableShapeRecord SR)
bool isVolatileType() const override
uint32_t getCount() const override
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:52
void dumpSymbolField(raw_ostream &OS, StringRef Name, T Value, int Indent)
Definition: PDBExtras.h:47
PDB_SymType
These values correspond to the SymTagEnum enumeration, and are documented here: https://msdn....
Definition: PDBTypes.h:243
void dumpSymbolIdField(raw_ostream &OS, StringRef Name, SymIndexId Value, int Indent, const IPDBSession &Session, PdbSymbolIdField FieldId, PdbSymbolIdField ShowFlags, PdbSymbolIdField RecurseFlags)
Definition: PDBSymbol.cpp:202
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
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:1873
Implement std::hash so that hash_code can be used in STL containers.
Definition: BitVector.h:858