25 "Invalid frame data record format!");
46 if (IncludeRelocPtr) {
51 std::vector<FrameData> SortedFrames(Frames.begin(), Frames.end());
53 return LHS.RvaStart <
RHS.RvaStart;
61 Frames.push_back(Frame);
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Provides read only access to a subclass of BinaryStream.
Error readObject(const T *&Dest)
Get a pointer to an object of type T from the underlying stream, as if by memcpy, and store the resul...
uint64_t bytesRemaining() const
Error readArray(ArrayRef< T > &Array, uint32_t NumElements)
Get a reference to a NumElements element array of objects of type T from the underlying stream as if ...
BinaryStreamRef is to BinaryStream what ArrayRef is to an Array.
Provides write only access to a subclass of WritableBinaryStream.
Error writeArray(ArrayRef< T > Array)
Writes an array of objects of type T to the underlying stream, as if by using memcpy.
Error writeInteger(T Value)
Write the integer Value to the underlying stream in the specified endianness.
Lightweight error class with error context and mandatory checking.
static ErrorSuccess success()
Create a success value.
Error initialize(BinaryStreamReader Reader)
Error commit(BinaryStreamWriter &Writer) const override
uint32_t calculateSerializedSize() const override
void addFrameData(const FrameData &Frame)
This is an optimization pass for GlobalISel generic memory operations.
void sort(IteratorTy Start, IteratorTy End)
Data in the SUBSEC_FRAMEDATA subection.