55 std::unique_ptr<IPDBRawSymbol>
Symbol)
56 : Session(PDBSession), RawSymbol(std::move(Symbol)) {}
60 #define FACTORY_SYMTAG_CASE(Tag, Type) \
61 case PDB_SymType::Tag: \
62 return std::unique_ptr<PDBSymbol>(new Type(PDBSession, std::move(Symbol)));
64 std::unique_ptr<PDBSymbol>
66 std::unique_ptr<IPDBRawSymbol>
Symbol) {
67 switch (Symbol->getSymTag()) {
99 return std::unique_ptr<PDBSymbol>(
104 #define TRY_DUMP_TYPE(Type) \
105 if (const Type *DerivedThis = dyn_cast<Type>(this)) \
106 Dumper.dump(OS, Indent, *DerivedThis);
108 #define ELSE_TRY_DUMP_TYPE(Type, Dumper) else TRY_DUMP_TYPE(Type, Dumper)
120 std::unique_ptr<IPDBEnumSymbols>
125 std::unique_ptr<IPDBEnumSymbols>
128 return RawSymbol->findChildren(Type, Name, Flags);
131 std::unique_ptr<IPDBEnumSymbols>
134 return RawSymbol->findChildrenByRVA(Type, Name, Flags, RVA);
137 std::unique_ptr<IPDBEnumSymbols>
139 return RawSymbol->findInlineFramesByRVA(RVA);
142 std::unique_ptr<IPDBEnumSymbols>
146 while (
auto Child = Result->getNext()) {
147 ++Stats[Child->getSymTag()];
std::unique_ptr< IPDBEnumSymbols > findInlineFramesByRVA(uint32_t RVA) const
std::unique_ptr< IPDBEnumSymbols > getChildStats(TagStats &Stats) const
PDB_SymType getSymTag() const
block placement Basic Block Placement Stats
static std::unique_ptr< PDBSymbol > create(const IPDBSession &PDBSession, std::unique_ptr< IPDBRawSymbol > Symbol)
ArrayType - Class to represent array types.
PointerType - Class to represent pointers.
PDB_NameSearchFlags
Defines flags used for enumerating child symbols.
PDBSymbolCustom represents symbols that are compiler-specific and do not fit anywhere else in the lex...
The instances of the Type class are immutable: once they are created, they are never changed...
std::unique_ptr< IPDBEnumSymbols > findChildrenByRVA(PDB_SymType Type, StringRef Name, PDB_NameSearchFlags Flags, uint32_t RVA) const
const std::unique_ptr< IPDBRawSymbol > RawSymbol
std::unique_ptr< IPDBEnumSymbols > findChildren(PDB_SymType Type, StringRef Name, PDB_NameSearchFlags Flags) const
std::unique_ptr< ConcreteSymbolEnumerator< T > > findAllChildren() const
IPDBSession defines an interface used to provide a context for querying debug information from a debu...
PDB_SymType
These values correspond to the SymTagEnum enumeration, and are documented here: https://msdn.microsoft.com/en-us/library/bkedss5f.aspx.
#define FACTORY_SYMTAG_CASE(Tag, Type)
PDBSymbol(const IPDBSession &PDBSession, std::unique_ptr< IPDBRawSymbol > Symbol)
void defaultDump(raw_ostream &OS, int Indent) const
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
std::unordered_map< PDB_SymType, int > TagStats