LLVM 22.0.0git
NativeTypeTypedef.cpp
Go to the documentation of this file.
4
5using namespace llvm;
6using namespace llvm::codeview;
7using namespace llvm::pdb;
8
13
15
17 PdbSymbolIdField ShowIdFields,
18 PdbSymbolIdField RecurseIdFields) const {
19 NativeRawSymbol::dump(OS, Indent, ShowIdFields, RecurseIdFields);
20 dumpSymbolField(OS, "name", getName(), Indent);
21 dumpSymbolIdField(OS, "typeId", getTypeId(), Indent, Session,
22 PdbSymbolIdField::Type, ShowIdFields, RecurseIdFields);
23}
24
25std::string NativeTypeTypedef::getName() const {
26 return std::string(Record.Name);
27}
28
30 return Session.getSymbolCache().findSymbolByTypeIndex(Record.Type);
31}
NativeRawSymbol(NativeSession &PDBSession, PDB_SymType Tag, SymIndexId SymbolId)
void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields, PdbSymbolIdField RecurseIdFields) const override
std::string getName() const override
SymIndexId getTypeId() const override
NativeTypeTypedef(NativeSession &Session, SymIndexId Id, codeview::UDTSym Typedef)
void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields, PdbSymbolIdField RecurseIdFields) const override
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition raw_ostream.h:53
uint32_t SymIndexId
Definition PDBTypes.h:26
void dumpSymbolField(raw_ostream &OS, StringRef Name, T Value, int Indent)
Definition PDBExtras.h:51
PDB_SymType
These values correspond to the SymTagEnum enumeration, and are documented here: https://msdn....
Definition PDBTypes.h:243
LLVM_ABI void dumpSymbolIdField(raw_ostream &OS, StringRef Name, SymIndexId Value, int Indent, const IPDBSession &Session, PdbSymbolIdField FieldId, PdbSymbolIdField ShowFlags, PdbSymbolIdField RecurseFlags)
This is an optimization pass for GlobalISel generic memory operations.
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:1847
Implement std::hash so that hash_code can be used in STL containers.
Definition BitVector.h:851