10 #ifndef LLVM_DEBUGINFO_PDB_IPDBSYMBOL_H
11 #define LLVM_DEBUGINFO_PDB_IPDBSYMBOL_H
20 #include <unordered_map>
22 #define FORWARD_SYMBOL_METHOD(MethodName) \
23 auto MethodName() const->decltype(RawSymbol->MethodName()) { \
24 return RawSymbol->MethodName(); \
32 #define DECLARE_PDB_SYMBOL_CONCRETE_TYPE(TagValue) \
33 static const PDB_SymType Tag = TagValue; \
34 static bool classof(const PDBSymbol *S) { return S->getSymTag() == Tag; }
47 static std::unique_ptr<PDBSymbol>
69 return llvm::make_unique<ConcreteSymbolEnumerator<T>>(std::move(BaseIter));
74 std::unique_ptr<IPDBEnumSymbols>
std::unique_ptr< IPDBEnumSymbols > findInlineFramesByRVA(uint32_t RVA) const
IPDBRawSymbol & getRawSymbol()
std::unique_ptr< T > findOneChild() const
const IPDBRawSymbol & getRawSymbol() const
IPDBRawSymbol defines an interface used to represent an arbitrary symbol.
std::unique_ptr< IPDBEnumSymbols > getChildStats(TagStats &Stats) const
PDB_SymType getSymTag() const
block placement Basic Block Placement Stats
PDBSymbol defines the base of the inheritance hierarchy for concrete symbol types (e...
static std::unique_ptr< PDBSymbol > create(const IPDBSession &PDBSession, std::unique_ptr< IPDBRawSymbol > Symbol)
PDB_NameSearchFlags
Defines flags used for enumerating child symbols.
virtual void dump(PDBSymDumper &Dumper) const =0
Dumps the contents of a symbol a raw_ostream.
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
const IPDBSession & Session
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.
const IPDBSession & getSession() const
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