LLVM  9.0.0svn
DebugSubsection.h
Go to the documentation of this file.
1 //===- DebugSubsection.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 
9 #ifndef LLVM_DEBUGINFO_CODEVIEW_MODULEDEBUGFRAGMENT_H
10 #define LLVM_DEBUGINFO_CODEVIEW_MODULEDEBUGFRAGMENT_H
11 
14 #include "llvm/Support/Casting.h"
15 
16 namespace llvm {
17 namespace codeview {
18 
20 public:
21  explicit DebugSubsectionRef(DebugSubsectionKind Kind) : Kind(Kind) {}
22  virtual ~DebugSubsectionRef();
23 
24  static bool classof(const DebugSubsectionRef *S) { return true; }
25 
26  DebugSubsectionKind kind() const { return Kind; }
27 
28 protected:
30 };
31 
33 public:
34  explicit DebugSubsection(DebugSubsectionKind Kind) : Kind(Kind) {}
35  virtual ~DebugSubsection();
36 
37  static bool classof(const DebugSubsection *S) { return true; }
38 
39  DebugSubsectionKind kind() const { return Kind; }
40 
41  virtual Error commit(BinaryStreamWriter &Writer) const = 0;
42  virtual uint32_t calculateSerializedSize() const = 0;
43 
44 protected:
46 };
47 
48 } // namespace codeview
49 } // namespace llvm
50 
51 #endif // LLVM_DEBUGINFO_CODEVIEW_MODULEDEBUGFRAGMENT_H
This class represents lattice values for constants.
Definition: AllocatorList.h:23
DebugSubsection(DebugSubsectionKind Kind)
static bool classof(const DebugSubsectionRef *S)
static bool classof(const DebugSubsection *S)
Provides write only access to a subclass of WritableBinaryStream.
DebugSubsectionKind kind() const
Lightweight error class with error context and mandatory checking.
Definition: Error.h:157
DebugSubsectionKind kind() const
DebugSubsectionRef(DebugSubsectionKind Kind)