We need to output the number of records we have, so we know how many to read in! Doh.

llvm-svn: 9555
This commit is contained in:
Chris Lattner 2003-10-28 19:35:56 +00:00
parent 3d949ca785
commit 40f9932105

View File

@ -78,5 +78,6 @@ void write_profiling_data(enum ProfilingType PT, unsigned *Start,
/* Write out this record! */
PTy = PT;
write(OutFile, &PTy, sizeof(int));
write(OutFile, &NumElements, sizeof(unsigned));
write(OutFile, Start, NumElements*sizeof(unsigned));
}