LLVM  14.0.0git
NativeTypeTypedef.cpp
Go to the documentation of this file.
2 
3 using namespace llvm;
4 using namespace llvm::codeview;
5 using namespace llvm::pdb;
6 
7 NativeTypeTypedef::NativeTypeTypedef(NativeSession &Session, SymIndexId Id,
8  codeview::UDTSym Typedef)
10  Record(std::move(Typedef)) {}
11 
13 
14 void NativeTypeTypedef::dump(raw_ostream &OS, int Indent,
15  PdbSymbolIdField ShowIdFields,
16  PdbSymbolIdField RecurseIdFields) const {
17  NativeRawSymbol::dump(OS, Indent, ShowIdFields, RecurseIdFields);
18  dumpSymbolField(OS, "name", getName(), Indent);
19  dumpSymbolIdField(OS, "typeId", getTypeId(), Indent, Session,
20  PdbSymbolIdField::Type, ShowIdFields, RecurseIdFields);
21 }
22 
23 std::string NativeTypeTypedef::getName() const {
24  return std::string(Record.Name);
25 }
26 
29 }
NativeTypeTypedef.h
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AllocatorList.h:23
llvm::pdb::NativeTypeTypedef::dump
void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields, PdbSymbolIdField RecurseIdFields) const override
Definition: NativeTypeTypedef.cpp:14
llvm::pdb::PdbSymbolIdField::Type
@ Type
llvm::pdb::NativeTypeTypedef::~NativeTypeTypedef
~NativeTypeTypedef() override
Definition: NativeTypeTypedef.cpp:12
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::NativeTypeTypedef::getName
std::string getName() const override
Definition: NativeTypeTypedef.cpp:23
llvm::pdb::NativeTypeTypedef::getTypeId
SymIndexId getTypeId() const override
Definition: NativeTypeTypedef.cpp:27
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
Definition: ConcreteSymbolEnumerator.h:20
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::pdb::NativeSession::getSymbolCache
SymbolCache & getSymbolCache()
Definition: NativeSession.h:109
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
uint32_t
llvm::pdb::SymbolCache::findSymbolByTypeIndex
SymIndexId findSymbolByTypeIndex(codeview::TypeIndex TI) const
Definition: SymbolCache.cpp:153
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::codeview
Definition: AppendingTypeTableBuilder.h:22
llvm::pdb::PdbSymbolIdField
PdbSymbolIdField
Definition: IPDBRawSymbol.h:24
llvm::pdb::PDB_SymType::Typedef
@ Typedef
llvm::pdb::NativeRawSymbol::Session
NativeSession & Session
Definition: NativeRawSymbol.h:232
llvm::AMDGPU::VGPRIndexMode::Id
Id
Definition: SIDefines.h:232
llvm::codeview::UDTSym
Definition: SymbolRecord.h:864
llvm::pdb::NativeRawSymbol
Definition: NativeRawSymbol.h:21