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 { 17class DIADataStream : public IPDBDataStream { 18public: 19 explicit DIADataStream(CComPtr<IDiaEnumDebugStreamData> DiaStreamData); 20 21 uint32_t getRecordCount() const override; 22 std::string getName() const override; 23 llvm::Optional<RecordType> getItemAtIndex(uint32_t Index) const override; 24 bool getNext(RecordType &Record) override; 25 void reset() override; 26 DIADataStream *clone() const override; 27 28private: 29 CComPtr<IDiaEnumDebugStreamData> StreamData; 30}; 31} 32 33#endif 34