mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
Differential Revision: https://reviews.llvm.org/D32716 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301882 91177308-0d34-0410-b5e6-96231b3b80d8
49 lines
1.3 KiB
C++
49 lines
1.3 KiB
C++
//===- ModuleDebugFragment.h ------------------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_DEBUGINFO_CODEVIEW_MODULEDEBUGFRAGMENT_H
|
|
#define LLVM_DEBUGINFO_CODEVIEW_MODULEDEBUGFRAGMENT_H
|
|
|
|
#include "llvm/DebugInfo/CodeView/CodeView.h"
|
|
#include "llvm/Support/BinaryStreamWriter.h"
|
|
#include "llvm/Support/Casting.h"
|
|
|
|
namespace llvm {
|
|
namespace codeview {
|
|
|
|
class ModuleDebugFragmentRef {
|
|
public:
|
|
explicit ModuleDebugFragmentRef(ModuleDebugFragmentKind Kind) : Kind(Kind) {}
|
|
virtual ~ModuleDebugFragmentRef();
|
|
|
|
ModuleDebugFragmentKind kind() const { return Kind; }
|
|
|
|
protected:
|
|
ModuleDebugFragmentKind Kind;
|
|
};
|
|
|
|
class ModuleDebugFragment {
|
|
public:
|
|
explicit ModuleDebugFragment(ModuleDebugFragmentKind Kind) : Kind(Kind) {}
|
|
virtual ~ModuleDebugFragment();
|
|
|
|
ModuleDebugFragmentKind kind() const { return Kind; }
|
|
|
|
virtual Error commit(BinaryStreamWriter &Writer) = 0;
|
|
virtual uint32_t calculateSerializedLength() = 0;
|
|
|
|
protected:
|
|
ModuleDebugFragmentKind Kind;
|
|
};
|
|
|
|
} // namespace codeview
|
|
} // namespace llvm
|
|
|
|
#endif // LLVM_DEBUGINFO_CODEVIEW_MODULEDEBUGFRAGMENT_H
|