LLVM 19.0.0git
DebugCrossExSubsection.h
Go to the documentation of this file.
1//===- DebugCrossExSubsection.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_DEBUGCROSSEXSUBSECTION_H
10#define LLVM_DEBUGINFO_CODEVIEW_DEBUGCROSSEXSUBSECTION_H
11
16#include "llvm/Support/Error.h"
17#include <cstdint>
18#include <map>
19
20namespace llvm {
21class BinaryStreamReader;
22class BinaryStreamWriter;
23namespace codeview {
24
28
29public:
32
33 static bool classof(const DebugSubsectionRef *S) {
35 }
36
39
40 Iterator begin() const { return References.begin(); }
41 Iterator end() const { return References.end(); }
42
43private:
45};
46
48public:
51
52 static bool classof(const DebugSubsection *S) {
54 }
55
57
58 uint32_t calculateSerializedSize() const override;
59 Error commit(BinaryStreamWriter &Writer) const override;
60
61private:
62 std::map<uint32_t, uint32_t> Mappings;
63};
64
65} // end namespace codeview
66} // end namespace llvm
67
68#endif // LLVM_DEBUGINFO_CODEVIEW_DEBUGCROSSEXSUBSECTION_H
Lightweight arrays that are backed by an arbitrary BinaryStream.
Provides read only access to a subclass of BinaryStream.
BinaryStreamRef is to BinaryStream what ArrayRef is to an Array.
Provides write only access to a subclass of WritableBinaryStream.
Lightweight error class with error context and mandatory checking.
Definition: Error.h:160
FixedStreamArray is similar to VarStreamArray, except with each record having a fixed-length.
FixedStreamArrayIterator< T > Iterator
static bool classof(const DebugSubsectionRef *S)
void addMapping(uint32_t Local, uint32_t Global)
Error commit(BinaryStreamWriter &Writer) const override
static bool classof(const DebugSubsection *S)
DebugSubsectionKind kind() const
DebugSubsectionKind kind() const
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
@ Global
Append to llvm.global_dtors.