LLVM  6.0.0svn
DebugFrameDataSubsection.h
Go to the documentation of this file.
1 //===- DebugFrameDataSubsection.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_DEBUGFRAMEDATASUBSECTION_H
11 #define LLVM_DEBUGINFO_CODEVIEW_DEBUGFRAMEDATASUBSECTION_H
12 
16 #include "llvm/Support/Error.h"
17 
18 namespace llvm {
19 namespace codeview {
21 public:
24  static bool classof(const DebugSubsection *S) {
25  return S->kind() == DebugSubsectionKind::FrameData;
26  }
27 
29 
30  FixedStreamArray<FrameData>::Iterator begin() const { return Frames.begin(); }
31  FixedStreamArray<FrameData>::Iterator end() const { return Frames.end(); }
32 
33  const void *getRelocPtr() const { return RelocPtr; }
34 
35 private:
36  const uint32_t *RelocPtr = nullptr;
38 };
39 
41 public:
44  static bool classof(const DebugSubsection *S) {
45  return S->kind() == DebugSubsectionKind::FrameData;
46  }
47 
48  uint32_t calculateSerializedSize() const override;
49  Error commit(BinaryStreamWriter &Writer) const override;
50 
51  void addFrameData(const FrameData &Frame);
52  void setFrames(ArrayRef<FrameData> Frames);
53 
54 private:
55  std::vector<FrameData> Frames;
56 };
57 }
58 }
59 
60 #endif
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
Data in the the SUBSEC_FRAMEDATA subection.
Definition: CodeView.h:535
FixedStreamArray is similar to VarStreamArray, except with each record having a fixed-length.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
Definition: APInt.h:33
Provides write only access to a subclass of WritableBinaryStream.
static bool classof(const DebugSubsection *S)
FixedStreamArray< FrameData >::Iterator begin() const
FixedStreamArray< FrameData >::Iterator end() const
static bool classof(const DebugSubsection *S)
Lightweight error class with error context and mandatory checking.
Definition: Error.h:156
Provides read only access to a subclass of BinaryStream.
DebugSubsectionKind kind() const