diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-28 19:35:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-28 19:35:56 +0000 |
commit | 98b1d8115e1efead65240b8e4d7bb258cff17a93 (patch) | |
tree | 149fefb4c3350dab8d69857ea01134745d75043e | |
parent | 759c3ed4d6efc8197b5d3147213ec753edd00a16 (diff) | |
download | llvm-98b1d8115e1efead65240b8e4d7bb258cff17a93.tar.gz llvm-98b1d8115e1efead65240b8e4d7bb258cff17a93.tar.bz2 llvm-98b1d8115e1efead65240b8e4d7bb258cff17a93.tar.xz |
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
-rw-r--r-- | runtime/libprofile/CommonProfiling.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/libprofile/CommonProfiling.c b/runtime/libprofile/CommonProfiling.c index ea795b6989..e5cfbe3b78 100644 --- a/runtime/libprofile/CommonProfiling.c +++ b/runtime/libprofile/CommonProfiling.c @@ -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)); } |