17 CComPtr<IDiaEnumLineNumbers> DiaEnumerator)
22 return (S_OK == Enumerator->get_Count(&Count)) ? Count : 0;
25std::unique_ptr<IPDBLineNumber>
27 CComPtr<IDiaLineNumber> Item;
28 if (S_OK != Enumerator->Item(Index, &Item))
31 return std::unique_ptr<IPDBLineNumber>(
new DIALineNumber(Item));
35 CComPtr<IDiaLineNumber> Item;
37 if (S_OK != Enumerator->Next(1, &Item, &NumFetched))
40 return std::unique_ptr<IPDBLineNumber>(
new DIALineNumber(Item));
uint32_t getChildCount() const override
ChildTypePtr getChildAtIndex(uint32_t Index) const override
ChildTypePtr getNext() override
DIAEnumLineNumbers(CComPtr< IDiaEnumLineNumbers > DiaEnumerator)
This is an optimization pass for GlobalISel generic memory operations.