DebugUnknownSubsection.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- DebugUnknownSubsection.h -----------------------------*- 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_CODEVIEW_DEBUGUNKNOWNSUBSECTION_H
  14. #define LLVM_DEBUGINFO_CODEVIEW_DEBUGUNKNOWNSUBSECTION_H
  15. #include "llvm/DebugInfo/CodeView/DebugSubsection.h"
  16. #include "llvm/Support/BinaryStreamRef.h"
  17. namespace llvm {
  18. namespace codeview {
  19. class DebugUnknownSubsectionRef final : public DebugSubsectionRef {
  20. public:
  21. DebugUnknownSubsectionRef(DebugSubsectionKind Kind, BinaryStreamRef Data)
  22. : DebugSubsectionRef(Kind), Data(Data) {}
  23. BinaryStreamRef getData() const { return Data; }
  24. private:
  25. BinaryStreamRef Data;
  26. };
  27. }
  28. }
  29. #endif
  30. #ifdef __GNUC__
  31. #pragma GCC diagnostic pop
  32. #endif