DebugUnknownSubsection.h 917 B

12345678910111213141516171819202122232425262728293031
  1. //===- DebugUnknownSubsection.h -----------------------------*- 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. #ifndef LLVM_DEBUGINFO_CODEVIEW_DEBUGUNKNOWNSUBSECTION_H
  9. #define LLVM_DEBUGINFO_CODEVIEW_DEBUGUNKNOWNSUBSECTION_H
  10. #include "llvm/DebugInfo/CodeView/DebugSubsection.h"
  11. #include "llvm/Support/BinaryStreamRef.h"
  12. namespace llvm {
  13. namespace codeview {
  14. class DebugUnknownSubsectionRef final : public DebugSubsectionRef {
  15. public:
  16. DebugUnknownSubsectionRef(DebugSubsectionKind Kind, BinaryStreamRef Data)
  17. : DebugSubsectionRef(Kind), Data(Data) {}
  18. BinaryStreamRef getData() const { return Data; }
  19. private:
  20. BinaryStreamRef Data;
  21. };
  22. }
  23. }
  24. #endif