20#include <unordered_set>
32 FunctionArgEnumerator(
const IPDBSession &PDBSession,
34 : Session(PDBSession),
Func(PDBFunc) {
37 std::unordered_set<std::string> SeenNames;
39 while (
auto Child = DataChildren->getNext()) {
41 if (SeenNames.insert(Child->getName()).second)
42 Args.push_back(std::move(Child));
50 std::unique_ptr<PDBSymbolData>
52 if (Index >=
Args.size())
59 std::unique_ptr<PDBSymbolData>
getNext()
override {
60 if (CurIter ==
Args.end())
62 const auto &
Result = **CurIter;
70 typedef std::vector<std::unique_ptr<PDBSymbolData>> ArgListType;
74 ArgListType::const_iterator CurIter;
78std::unique_ptr<IPDBEnumChildren<PDBSymbolData>>
80 return std::make_unique<FunctionArgEnumerator>(
Session, *
this);
91 if (
Name ==
"__vecDelDtor")
96std::unique_ptr<IPDBEnumLineNumbers> PDBSymbolFunc::getLineNumbers()
const {
103 if (
auto Lines = getLineNumbers()) {
104 if (
auto FirstLine = Lines->getNext()) {
105 return FirstLine->getCompilandId();
virtual uint32_t getChildCount() const =0
virtual ChildTypePtr getNext()=0
virtual ChildTypePtr getChildAtIndex(uint32_t Index) const =0
virtual uint64_t getLength() const =0
virtual uint64_t getVirtualAddress() const =0
IPDBSession defines an interface used to provide a context for querying debug information from a debu...
virtual std::unique_ptr< IPDBEnumLineNumbers > findLineNumbersByAddress(uint64_t Address, uint32_t Length) const =0
virtual void dump(const PDBSymbolAnnotation &Symbol)
void dump(PDBSymDumper &Dumper) const override
Dumps the contents of a symbol a raw_ostream.
bool isDestructor() const
std::unique_ptr< IPDBEnumChildren< PDBSymbolData > > getArguments() const
FORWARD_CONCRETE_SYMBOL_ID_METHOD_WITH_NAME(PDBSymbolTypeFunctionSig, getType, getSignature) std uint32_t getCompilandId() const
const IPDBSession & Session
std::string getName() const
IPDBRawSymbol * RawSymbol
constexpr char Args[]
Key for Kernel::Metadata::mArgs.
NodeAddr< FuncNode * > Func
This is an optimization pass for GlobalISel generic memory operations.