LLVM  14.0.0git
DIADataStream.h
Go to the documentation of this file.
1 //===- DIADataStream.h - DIA implementation of IPDBDataStream ---*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_DEBUGINFO_PDB_DIA_DIADATASTREAM_H
10 #define LLVM_DEBUGINFO_PDB_DIA_DIADATASTREAM_H
11 
12 #include "DIASupport.h"
14 
15 namespace llvm {
16 namespace pdb {
17 class DIADataStream : public IPDBDataStream {
18 public:
19  explicit DIADataStream(CComPtr<IDiaEnumDebugStreamData> DiaStreamData);
20 
21  uint32_t getRecordCount() const override;
22  std::string getName() const override;
24  bool getNext(RecordType &Record) override;
25  void reset() override;
26 
27 private:
28  CComPtr<IDiaEnumDebugStreamData> StreamData;
29 };
30 }
31 }
32 
33 #endif
DIASupport.h
llvm::pdb::IPDBDataStream
IPDBDataStream defines an interface used to represent a stream consisting of a name and a series of r...
Definition: IPDBDataStream.h:23
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::pdb::DIADataStream::reset
void reset() override
Definition: DIADataStream.cpp:56
llvm::SmallVector< uint8_t, 32 >
llvm::pdb::DIADataStream
Definition: DIADataStream.h:17
llvm::Optional
Definition: APInt.h:33
llvm::pdb::DIADataStream::getNext
bool getNext(RecordType &Record) override
Definition: DIADataStream.cpp:41
llvm::pdb::DIADataStream::getName
std::string getName() const override
Definition: DIADataStream.cpp:23
llvm::pdb::DIADataStream::DIADataStream
DIADataStream(CComPtr< IDiaEnumDebugStreamData > DiaStreamData)
Definition: DIADataStream.cpp:15
llvm::pdb::DIADataStream::getRecordCount
uint32_t getRecordCount() const override
Definition: DIADataStream.cpp:18
Index
uint32_t Index
Definition: ELFObjHandler.cpp:84
llvm::Record
Definition: Record.h:1472
uint32_t
llvm::pdb::DIADataStream::getItemAtIndex
llvm::Optional< RecordType > getItemAtIndex(uint32_t Index) const override
Definition: DIADataStream.cpp:28
IPDBDataStream.h