50 using namespace llvm::pdb;
53 std::unique_ptr<IPDBRawSymbol>
Symbol)
54 : Session(PDBSession), RawSymbol(std::move(Symbol)) {}
58 #define FACTORY_SYMTAG_CASE(Tag, Type) \
59 case PDB_SymType::Tag: \
60 return std::unique_ptr<PDBSymbol>(new Type(PDBSession, std::move(Symbol)));
62 std::unique_ptr<PDBSymbol>
64 std::unique_ptr<IPDBRawSymbol>
Symbol) {
65 switch (Symbol->getSymTag()) {
97 return std::unique_ptr<PDBSymbol>(
102 #define TRY_DUMP_TYPE(Type) \
103 if (const Type *DerivedThis = dyn_cast<Type>(this)) \
104 Dumper.dump(OS, Indent, *DerivedThis);
106 #define ELSE_TRY_DUMP_TYPE(Type, Dumper) else TRY_DUMP_TYPE(Type, Dumper)
119 std::unique_ptr<IPDBEnumSymbols>
124 std::unique_ptr<IPDBEnumSymbols>
127 return RawSymbol->findChildren(Type, Name, Flags);
130 std::unique_ptr<IPDBEnumSymbols>
133 return RawSymbol->findChildrenByRVA(Type, Name, Flags, RVA);
136 std::unique_ptr<IPDBEnumSymbols>
138 return RawSymbol->findInlineFramesByRVA(RVA);
141 std::unique_ptr<IPDBEnumSymbols>
145 while (
auto Child = Result->getNext()) {
146 ++Stats[Child->getSymTag()];
IPDBSession defines an interface used to provide a context for querying debug information from a debu...
PDBSymbolCustom represents symbols that are compiler-specific and do not fit anywhere else in the lex...
std::unique_ptr< ConcreteSymbolEnumerator< T > > findAllChildren() const
PDB_NameSearchFlags
Defines flags used for enumerating child symbols.
std::unique_ptr< IPDBEnumSymbols > findChildrenByRVA(PDB_SymType Type, StringRef Name, PDB_NameSearchFlags Flags, uint32_t RVA) const
const std::unique_ptr< IPDBRawSymbol > RawSymbol
PDBSymbol(const IPDBSession &PDBSession, std::unique_ptr< IPDBRawSymbol > Symbol)
struct fuzzer::@269 Flags
static std::unique_ptr< PDBSymbol > create(const IPDBSession &PDBSession, std::unique_ptr< IPDBRawSymbol > Symbol)
block placement Basic Block Placement Stats
std::unique_ptr< IPDBEnumSymbols > findChildren(PDB_SymType Type, StringRef Name, PDB_NameSearchFlags Flags) const
Class to represent array types.
void defaultDump(raw_ostream &OS, int Indent) const
Class to represent pointers.
std::unique_ptr< IPDBEnumSymbols > findInlineFramesByRVA(uint32_t RVA) const
PDB_SymType
These values correspond to the SymTagEnum enumeration, and are documented here: https://msdn.microsoft.com/en-us/library/bkedss5f.aspx.
The instances of the Type class are immutable: once they are created, they are never changed...
std::unique_ptr< IPDBEnumSymbols > getChildStats(TagStats &Stats) const
PDB_SymType getSymTag() const
#define FACTORY_SYMTAG_CASE(Tag, Type)
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
uint32_t getSymIndexId() const