LLVM  10.0.0svn
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 
17 #include "llvm/Support/Error.h"
18 #include <cstdint>
19 #include <map>
20 
21 namespace llvm {
22 namespace codeview {
23 
27 
28 public:
31 
32  static bool classof(const DebugSubsectionRef *S) {
34  }
35 
38 
39  Iterator begin() const { return References.begin(); }
40  Iterator end() const { return References.end(); }
41 
42 private:
44 };
45 
47 public:
50 
51  static bool classof(const DebugSubsection *S) {
53  }
54 
55  void addMapping(uint32_t Local, uint32_t Global);
56 
57  uint32_t calculateSerializedSize() const override;
58  Error commit(BinaryStreamWriter &Writer) const override;
59 
60 private:
61  std::map<uint32_t, uint32_t> Mappings;
62 };
63 
64 } // end namespace codeview
65 } // end namespace llvm
66 
67 #endif // LLVM_DEBUGINFO_CODEVIEW_DEBUGCROSSEXSUBSECTION_H
This class represents lattice values for constants.
Definition: AllocatorList.h:23
static bool classof(const DebugSubsectionRef *S)
FixedStreamArray is similar to VarStreamArray, except with each record having a fixed-length.
FixedStreamArrayIterator< T > Iterator
Provides write only access to a subclass of WritableBinaryStream.
BinaryStreamRef is to BinaryStream what ArrayRef is to an Array.
DebugSubsectionKind kind() const
static bool classof(const DebugSubsection *S)
Lightweight error class with error context and mandatory checking.
Definition: Error.h:157
Provides read only access to a subclass of BinaryStream.
DebugSubsectionKind kind() const