LLVM  8.0.1
DebugSymbolRVASubsection.h
Go to the documentation of this file.
1 //===- DebugSymbolRVASubsection.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_DEBUGSYMBOLRVASUBSECTION_H
11 #define LLVM_DEBUGINFO_CODEVIEW_DEBUGSYMBOLRVASUBSECTION_H
12 
16 #include "llvm/Support/Endian.h"
17 #include "llvm/Support/Error.h"
18 #include <cstdint>
19 #include <vector>
20 
21 namespace llvm {
22 
23 class BinaryStreamReader;
24 
25 namespace codeview {
26 
28 public:
30 
32 
33  static bool classof(const DebugSubsectionRef *S) {
35  }
36 
37  ArrayType::Iterator begin() const { return RVAs.begin(); }
38  ArrayType::Iterator end() const { return RVAs.end(); }
39 
41 
42 private:
43  ArrayType RVAs;
44 };
45 
47 public:
49 
50  static bool classof(const DebugSubsection *S) {
52  }
53 
54  Error commit(BinaryStreamWriter &Writer) const override;
55  uint32_t calculateSerializedSize() const override;
56 
57  void addRVA(uint32_t RVA) { RVAs.push_back(support::ulittle32_t(RVA)); }
58 
59 private:
60  std::vector<support::ulittle32_t> RVAs;
61 };
62 
63 } // end namespace codeview
64 
65 } // end namespace llvm
66 
67 #endif // LLVM_DEBUGINFO_CODEVIEW_DEBUGSYMBOLRVASUBSECTION_H
static bool classof(const DebugSubsectionRef *S)
This class represents lattice values for constants.
Definition: AllocatorList.h:24
Provides write only access to a subclass of WritableBinaryStream.
static bool classof(const DebugSubsection *S)
DebugSubsectionKind kind() const
FixedStreamArrayIterator< T > end() const
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
FixedStreamArrayIterator< T > begin() const