@@ -161,7 +161,7 @@ struct MemProfRecord {
161161 bool operator !=(const Frame &Other) const { return !operator ==(Other); }
162162
163163 // Write the contents of the frame to the ostream \p OS.
164- void serialize (raw_ostream & OS) const {
164+ void write (raw_ostream & OS) const {
165165 using namespace support ;
166166
167167 endian::Writer LE (OS, little);
@@ -176,22 +176,6 @@ struct MemProfRecord {
176176 LE.write <uint32_t >(Column);
177177 LE.write <bool >(IsInlineFrame);
178178 }
179-
180- // Read a frame from char data which has been serialized as little endian.
181- static Frame deserialize (const unsigned char *Ptr) {
182- using namespace support ;
183- return Frame (
184- /* Function=*/ endian::readNext<uint64_t , little, unaligned>(Ptr),
185- /* LineOffset=*/ endian::readNext<uint32_t , little, unaligned>(Ptr),
186- /* Column=*/ endian::readNext<uint32_t , little, unaligned>(Ptr),
187- /* IsInlineFrame=*/ endian::readNext<bool , little, unaligned>(Ptr));
188- }
189-
190- // Returns the size of the frame information.
191- static constexpr size_t serializedSize () {
192- return sizeof (Frame::Function) + sizeof (Frame::LineOffset) +
193- sizeof (Frame::Column) + sizeof (Frame::IsInlineFrame);
194- }
195179 });
196180
197181 // The dynamic calling context for the allocation.
0 commit comments