From 98b1d8115e1efead65240b8e4d7bb258cff17a93 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 28 Oct 2003 19:35:56 +0000 Subject: 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 --- runtime/libprofile/CommonProfiling.c | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/libprofile') 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)); } -- cgit v1.2.3