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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9555 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-10-28 19:35:56 +00:00
parent 759c3ed4d6
commit 98b1d8115e

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));
}