blob: fa7df325499fe93aaaf1c3c1e28708ab351a8293 [file] [log] [blame]
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01001//===- DebugUnknownSubsection.h -----------------------------*- C++ -*-===//
2//
Andrew Walbran16937d02019-10-22 13:54:20 +01003// 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
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01006//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_DEBUGINFO_CODEVIEW_MODULEDEBUGUNKNOWNFRAGMENT_H
10#define LLVM_DEBUGINFO_CODEVIEW_MODULEDEBUGUNKNOWNFRAGMENT_H
11
12#include "llvm/DebugInfo/CodeView/DebugSubsection.h"
13#include "llvm/Support/BinaryStreamRef.h"
14
15namespace llvm {
16namespace codeview {
17
18class DebugUnknownSubsectionRef final : public DebugSubsectionRef {
19public:
20 DebugUnknownSubsectionRef(DebugSubsectionKind Kind, BinaryStreamRef Data)
21 : DebugSubsectionRef(Kind), Data(Data) {}
22
23 BinaryStreamRef getData() const { return Data; }
24
25private:
26 BinaryStreamRef Data;
27};
28}
29}
30
31#endif