DIADataStream.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- DIADataStream.h - DIA implementation of IPDBDataStream ---*- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_DEBUGINFO_PDB_DIA_DIADATASTREAM_H
  14. #define LLVM_DEBUGINFO_PDB_DIA_DIADATASTREAM_H
  15. #include "DIASupport.h"
  16. #include "llvm/DebugInfo/PDB/IPDBDataStream.h"
  17. namespace llvm {
  18. namespace pdb {
  19. class DIADataStream : public IPDBDataStream {
  20. public:
  21. explicit DIADataStream(CComPtr<IDiaEnumDebugStreamData> DiaStreamData);
  22. uint32_t getRecordCount() const override;
  23. std::string getName() const override;
  24. std::optional<RecordType> getItemAtIndex(uint32_t Index) const override;
  25. bool getNext(RecordType &Record) override;
  26. void reset() override;
  27. private:
  28. CComPtr<IDiaEnumDebugStreamData> StreamData;
  29. };
  30. }
  31. }
  32. #endif
  33. #ifdef __GNUC__
  34. #pragma GCC diagnostic pop
  35. #endif