17 CComPtr<IDiaEnumDebugStreams> DiaEnumerator)
22 return (S_OK == Enumerator->get_Count(&Count)) ? Count : 0;
25std::unique_ptr<IPDBDataStream>
27 CComPtr<IDiaEnumDebugStreamData> Item;
30 VarIndex.lVal =
Index;
31 if (S_OK != Enumerator->Item(VarIndex, &Item))
34 return std::unique_ptr<IPDBDataStream>(
new DIADataStream(Item));
38 CComPtr<IDiaEnumDebugStreamData> Item;
40 if (S_OK != Enumerator->Next(1, &Item, &NumFetched))
43 return std::unique_ptr<IPDBDataStream>(
new DIADataStream(Item));
DIAEnumDebugStreams(CComPtr< IDiaEnumDebugStreams > DiaEnumerator)
ChildTypePtr getChildAtIndex(uint32_t Index) const override
uint32_t getChildCount() const override
ChildTypePtr getNext() override
This is an optimization pass for GlobalISel generic memory operations.