LLVM  16.0.0git
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_DEBUGSUBSECTION_H
10 #define LLVM_DEBUGINFO_CODEVIEW_DEBUGSUBSECTION_H
11 
13 #include "llvm/Support/Error.h"
14 
15 #include <cstdint>
16 
17 namespace llvm {
18 class BinaryStreamWriter;
19 namespace codeview {
20 
22 public:
24  virtual ~DebugSubsectionRef();
25 
26  static bool classof(const DebugSubsectionRef *S) { return true; }
27 
28  DebugSubsectionKind kind() const { return Kind; }
29 
30 protected:
32 };
33 
35 public:
37  virtual ~DebugSubsection();
38 
39  static bool classof(const DebugSubsection *S) { return true; }
40 
41  DebugSubsectionKind kind() const { return Kind; }
42 
43  virtual Error commit(BinaryStreamWriter &Writer) const = 0;
44  virtual uint32_t calculateSerializedSize() const = 0;
45 
46 protected:
48 };
49 
50 } // namespace codeview
51 } // namespace llvm
52 
53 #endif // LLVM_DEBUGINFO_CODEVIEW_DEBUGSUBSECTION_H
llvm::codeview::DebugSubsection::kind
DebugSubsectionKind kind() const
Definition: DebugSubsection.h:41
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
llvm::BinaryStreamWriter
Provides write only access to a subclass of WritableBinaryStream.
Definition: BinaryStreamWriter.h:30
llvm::codeview::DebugSubsectionRef::classof
static bool classof(const DebugSubsectionRef *S)
Definition: DebugSubsection.h:26
Error.h
llvm::codeview::DebugSubsectionRef::~DebugSubsectionRef
virtual ~DebugSubsectionRef()
llvm::codeview::DebugSubsection::Kind
DebugSubsectionKind Kind
Definition: DebugSubsection.h:47
llvm::codeview::DebugSubsection::classof
static bool classof(const DebugSubsection *S)
Definition: DebugSubsection.h:39
llvm::codeview::DebugSubsectionRef::Kind
DebugSubsectionKind Kind
Definition: DebugSubsection.h:31
llvm::codeview::DebugSubsectionRef
Definition: DebugSubsection.h:21
llvm::codeview::DebugSubsectionRef::kind
DebugSubsectionKind kind() const
Definition: DebugSubsection.h:28
CodeView.h
llvm::codeview::DebugSubsection::DebugSubsection
DebugSubsection(DebugSubsectionKind Kind)
Definition: DebugSubsection.h:36
llvm::codeview::DebugSubsectionRef::DebugSubsectionRef
DebugSubsectionRef(DebugSubsectionKind Kind)
Definition: DebugSubsection.h:23
llvm::codeview::DebugSubsection::~DebugSubsection
virtual ~DebugSubsection()
llvm::codeview::DebugSubsection::calculateSerializedSize
virtual uint32_t calculateSerializedSize() const =0
uint32_t
S
add sub stmia L5 ldr r0 bl L_printf $stub Instead of a and a wouldn t it be better to do three moves *Return an aggregate type is even return S
Definition: README.txt:210
llvm::codeview::DebugSubsection::commit
virtual Error commit(BinaryStreamWriter &Writer) const =0
llvm::codeview::DebugSubsection
Definition: DebugSubsection.h:34
llvm::Error
Lightweight error class with error context and mandatory checking.
Definition: Error.h:155
llvm::codeview::DebugSubsectionKind
DebugSubsectionKind
Definition: CodeView.h:312