17 const DIASession &PDBSession, CComPtr<IDiaEnumSourceFiles> DiaEnumerator)
18 : Session(PDBSession),
Enumerator(DiaEnumerator) {}
22 return (S_OK == Enumerator->get_Count(&Count)) ? Count : 0;
25std::unique_ptr<IPDBSourceFile>
27 CComPtr<IDiaSourceFile> Item;
28 if (S_OK != Enumerator->Item(Index, &Item))
31 return std::unique_ptr<IPDBSourceFile>(
new DIASourceFile(Session, Item));
35 CComPtr<IDiaSourceFile> Item;
37 if (S_OK != Enumerator->Next(1, &Item, &NumFetched))
40 return std::unique_ptr<IPDBSourceFile>(
new DIASourceFile(Session, Item));
uint32_t getChildCount() const override
ChildTypePtr getChildAtIndex(uint32_t Index) const override
ChildTypePtr getNext() override
DIAEnumSourceFiles(const DIASession &PDBSession, CComPtr< IDiaEnumSourceFiles > DiaEnumerator)
This is an optimization pass for GlobalISel generic memory operations.