LLVM 24.0.0git
NativeTypeTypedefUDT.cpp
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
12
13using namespace llvm;
14using namespace llvm::codeview;
15using namespace llvm::pdb;
16
22
24
26 PdbSymbolIdField ShowIdFields,
27 PdbSymbolIdField RecurseIdFields) const {
28 NativeRawSymbol::dump(OS, Indent, ShowIdFields, RecurseIdFields);
29 dumpSymbolField(OS, "name", getName(), Indent);
30 dumpSymbolIdField(OS, "typeId", getTypeId(), Indent, Session,
31 PdbSymbolIdField::Type, ShowIdFields, RecurseIdFields);
32}
33
34std::string NativeTypeTypedefUDT::getName() const {
35 return std::string(Record.Name);
36}
37
39 return Session.getSymbolCache().findSymbolByTypeIndex(Record.Type);
40}
NativeRawSymbol(NativeSession &PDBSession, PDB_SymType Tag, SymIndexId SymbolId)
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
NativeTypeTypedefUDT(NativeSession &Session, SymIndexId Id, codeview::UDTSym Typedef)
SymIndexId getTypeId() const override
std::string getName() 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:245
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:1933
Implement std::hash so that hash_code can be used in STL containers.
Definition BitVector.h:879