1//===- DIADataStream.h - DIA implementation of IPDBDataStream ---*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9 10#ifndef LLVM_DEBUGINFO_PDB_DIA_DIADATASTREAM_H 11#define LLVM_DEBUGINFO_PDB_DIA_DIADATASTREAM_H 12 13#include "DIASupport.h" 14#include "llvm/DebugInfo/PDB/IPDBDataStream.h" 15 16namespace llvm { 17namespace pdb { 18class DIADataStream : public IPDBDataStream { 19public: 20 explicit DIADataStream(CComPtr<IDiaEnumDebugStreamData> DiaStreamData); 21 22 uint32_t getRecordCount() const override; 23 std::string getName() const override; 24 llvm::Optional<RecordType> getItemAtIndex(uint32_t Index) const override; 25 bool getNext(RecordType &Record) override; 26 void reset() override; 27 DIADataStream *clone() const override; 28 29private: 30 CComPtr<IDiaEnumDebugStreamData> StreamData; 31}; 32} 33} 34 35#endif 36