1 //===- DIADataStream.h - DIA implementation of IPDBDataStream ---*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_DEBUGINFO_PDB_DIA_DIADATASTREAM_H
11 #define LLVM_DEBUGINFO_PDB_DIA_DIADATASTREAM_H
13 #include "DIASupport.h"
14 #include "llvm/DebugInfo/PDB/IPDBDataStream.h"
18 class DIADataStream : public IPDBDataStream {
20 explicit DIADataStream(CComPtr<IDiaEnumDebugStreamData> DiaStreamData);
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;
30 CComPtr<IDiaEnumDebugStreamData> StreamData;