commit | 98b1d8115e1efead65240b8e4d7bb258cff17a93 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Oct 28 19:35:56 2003 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Oct 28 19:35:56 2003 +0000 |
tree | 149fefb4c3350dab8d69857ea01134745d75043e | |
parent | 759c3ed4d6efc8197b5d3147213ec753edd00a16 [diff] [blame] |
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
diff --git a/runtime/libprofile/CommonProfiling.c b/runtime/libprofile/CommonProfiling.c index ea795b6..e5cfbe3 100644 --- a/runtime/libprofile/CommonProfiling.c +++ b/runtime/libprofile/CommonProfiling.c
@@ -78,5 +78,6 @@ /* Write out this record! */ PTy = PT; write(OutFile, &PTy, sizeof(int)); + write(OutFile, &NumElements, sizeof(unsigned)); write(OutFile, Start, NumElements*sizeof(unsigned)); }