21#include <unordered_set>
33 FunctionArgEnumerator(
const IPDBSession &PDBSession,
35 : Session(PDBSession),
Func(PDBFunc) {
38 std::unordered_set<std::string> SeenNames;
40 while (
auto Child = DataChildren->getNext()) {
42 std::string
Name = Child->getName();
43 if (SeenNames.find(
Name) != SeenNames.end())
45 Args.push_back(std::move(Child));
46 SeenNames.insert(
Name);
54 std::unique_ptr<PDBSymbolData>
63 std::unique_ptr<PDBSymbolData>
getNext()
override {
64 if (CurIter ==
Args.end())
66 const auto &
Result = **CurIter;
74 typedef std::vector<std::unique_ptr<PDBSymbolData>> ArgListType;
78 ArgListType::const_iterator CurIter;
82std::unique_ptr<IPDBEnumChildren<PDBSymbolData>>
84 return std::make_unique<FunctionArgEnumerator>(
Session, *
this);
95 if (
Name ==
"__vecDelDtor")
100std::unique_ptr<IPDBEnumLineNumbers> PDBSymbolFunc::getLineNumbers()
const {
107 if (
auto Lines = getLineNumbers()) {
108 if (
auto FirstLine = Lines->getNext()) {
109 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.