summaryrefslogtreecommitdiffstats
path: root/llvm/runtime/libprofile/CommonProfiling.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-28 19:35:56 +0000
committerChris Lattner <sabre@nondot.org>2003-10-28 19:35:56 +0000
commit5b78ea347398822f12d1904db3ec55fe8c10ea40 (patch)
tree9c45745967e4b05d525c323fb872bf23301d257d /llvm/runtime/libprofile/CommonProfiling.c
parentc3ee97dc762d875d9056c19890f304b3f499cacb (diff)
downloadbcm5719-llvm-5b78ea347398822f12d1904db3ec55fe8c10ea40.tar.gz
bcm5719-llvm-5b78ea347398822f12d1904db3ec55fe8c10ea40.zip
We need to output the number of records we have, so we know how many to read in! Doh.
llvm-svn: 9555
Diffstat (limited to 'llvm/runtime/libprofile/CommonProfiling.c')
-rw-r--r--llvm/runtime/libprofile/CommonProfiling.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/runtime/libprofile/CommonProfiling.c b/llvm/runtime/libprofile/CommonProfiling.c
index ea795b6989e..e5cfbe3b788 100644
--- a/llvm/runtime/libprofile/CommonProfiling.c
+++ b/llvm/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));
}
OpenPOWER on IntegriCloud