18 CComPtr<IDiaEnumSymbols> DiaEnumerator)
19 : Session(PDBSession),
Enumerator(DiaEnumerator) {}
23 return (S_OK == Enumerator->get_Count(&Count)) ? Count : 0;
26std::unique_ptr<PDBSymbol>
28 CComPtr<IDiaSymbol> Item;
29 if (S_OK != Enumerator->Item(
Index, &Item))
32 std::unique_ptr<DIARawSymbol> RawSymbol(
new DIARawSymbol(Session, Item));
33 return std::unique_ptr<PDBSymbol>(
PDBSymbol::create(Session, std::move(RawSymbol)));
37 CComPtr<IDiaSymbol> Item;
39 if (S_OK != Enumerator->Next(1, &Item, &NumFetched))
42 std::unique_ptr<DIARawSymbol> RawSymbol(
new DIARawSymbol(Session, Item));
43 return std::unique_ptr<PDBSymbol>(
std::unique_ptr< PDBSymbol > getChildAtIndex(uint32_t Index) const override
DIAEnumSymbols(const DIASession &Session, CComPtr< IDiaEnumSymbols > DiaEnumerator)
std::unique_ptr< PDBSymbol > getNext() override
uint32_t getChildCount() const override
static std::unique_ptr< PDBSymbol > create(const IPDBSession &PDBSession, std::unique_ptr< IPDBRawSymbol > RawSymbol)
This is an optimization pass for GlobalISel generic memory operations.