[Alignment][NFC] Convert StoreInst to MaybeAlign
[llvm-complete.git] / include / llvm / DebugInfo / PDB / DIA / DIADataStream.h
blobf05b58c555074e762872d908ab2076dc6f6b6065
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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_DEBUGINFO_PDB_DIA_DIADATASTREAM_H
10 #define LLVM_DEBUGINFO_PDB_DIA_DIADATASTREAM_H
12 #include "DIASupport.h"
13 #include "llvm/DebugInfo/PDB/IPDBDataStream.h"
15 namespace llvm {
16 namespace pdb {
17 class DIADataStream : public IPDBDataStream {
18 public:
19 explicit DIADataStream(CComPtr<IDiaEnumDebugStreamData> DiaStreamData);
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;
27 private:
28 CComPtr<IDiaEnumDebugStreamData> StreamData;
33 #endif