LLVM  14.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 
14 #include "llvm/Support/Casting.h"
15 
16 namespace llvm {
17 namespace codeview {
18 
20 public:
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:
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_DEBUGSUBSECTION_H
llvm::codeview::DebugSubsection::kind
DebugSubsectionKind kind() const
Definition: DebugSubsection.h:39
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AllocatorList.h:23
llvm::BinaryStreamWriter
Provides write only access to a subclass of WritableBinaryStream.
Definition: BinaryStreamWriter.h:31
llvm::codeview::DebugSubsectionRef::classof
static bool classof(const DebugSubsectionRef *S)
Definition: DebugSubsection.h:24
llvm::codeview::DebugSubsectionRef::~DebugSubsectionRef
virtual ~DebugSubsectionRef()
Definition: DebugSubsection.cpp:13
llvm::codeview::DebugSubsection::Kind
DebugSubsectionKind Kind
Definition: DebugSubsection.h:45
llvm::codeview::DebugSubsection::classof
static bool classof(const DebugSubsection *S)
Definition: DebugSubsection.h:37
llvm::codeview::DebugSubsectionRef::Kind
DebugSubsectionKind Kind
Definition: DebugSubsection.h:29
llvm::codeview::DebugSubsectionRef
Definition: DebugSubsection.h:19
llvm::codeview::DebugSubsectionRef::kind
DebugSubsectionKind kind() const
Definition: DebugSubsection.h:26
CodeView.h
llvm::codeview::DebugSubsection::DebugSubsection
DebugSubsection(DebugSubsectionKind Kind)
Definition: DebugSubsection.h:34
llvm::codeview::DebugSubsectionRef::DebugSubsectionRef
DebugSubsectionRef(DebugSubsectionKind Kind)
Definition: DebugSubsection.h:21
llvm::codeview::DebugSubsection::~DebugSubsection
virtual ~DebugSubsection()
Definition: DebugSubsection.cpp:15
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:32
llvm::Error
Lightweight error class with error context and mandatory checking.
Definition: Error.h:157
Casting.h
llvm::codeview::DebugSubsectionKind
DebugSubsectionKind
Definition: CodeView.h:313
BinaryStreamWriter.h