Andrew Scull | 5e1ddfa | 2018-08-14 10:06:54 +0100 | [diff] [blame] | 1 | //===- DebugUnknownSubsection.h -----------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #ifndef LLVM_DEBUGINFO_CODEVIEW_MODULEDEBUGUNKNOWNFRAGMENT_H |
| 11 | #define LLVM_DEBUGINFO_CODEVIEW_MODULEDEBUGUNKNOWNFRAGMENT_H |
| 12 | |
| 13 | #include "llvm/DebugInfo/CodeView/DebugSubsection.h" |
| 14 | #include "llvm/Support/BinaryStreamRef.h" |
| 15 | |
| 16 | namespace llvm { |
| 17 | namespace codeview { |
| 18 | |
| 19 | class DebugUnknownSubsectionRef final : public DebugSubsectionRef { |
| 20 | public: |
| 21 | DebugUnknownSubsectionRef(DebugSubsectionKind Kind, BinaryStreamRef Data) |
| 22 | : DebugSubsectionRef(Kind), Data(Data) {} |
| 23 | |
| 24 | BinaryStreamRef getData() const { return Data; } |
| 25 | |
| 26 | private: |
| 27 | BinaryStreamRef Data; |
| 28 | }; |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | #endif |