We need to output the number of records we have, so we know how many to read in!...
authorChris Lattner <sabre@nondot.org>
Tue, 28 Oct 2003 19:35:56 +0000 (19:35 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 28 Oct 2003 19:35:56 +0000 (19:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9555 91177308-0d34-0410-b5e6-96231b3b80d8

runtime/libprofile/CommonProfiling.c

index ea795b6989e98d33765d09cd4958e738297df008..e5cfbe3b78817acc2cb6c27c002d3c04313dfd54 100644 (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));
 }