LLVM  8.0.1
DebugCrossExSubsection.h
Go to the documentation of this file.
1 //===- DebugCrossExSubsection.h ---------------------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLVM_DEBUGINFO_CODEVIEW_DEBUGCROSSEXSUBSECTION_H
11 #define LLVM_DEBUGINFO_CODEVIEW_DEBUGCROSSEXSUBSECTION_H
12 
18 #include "llvm/Support/Error.h"
19 #include <cstdint>
20 #include <map>
21 
22 namespace llvm {
23 namespace codeview {
24 
28 
29 public:
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 
43 private:
45 };
46 
48 public:
51 
52  static bool classof(const DebugSubsection *S) {
54  }
55 
56  void addMapping(uint32_t Local, uint32_t Global);
57 
58  uint32_t calculateSerializedSize() const override;
59  Error commit(BinaryStreamWriter &Writer) const override;
60 
61 private:
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
This class represents lattice values for constants.
Definition: AllocatorList.h:24
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:158
Provides read only access to a subclass of BinaryStream.
DebugSubsectionKind kind() const