projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
759c3ed
)
We need to output the number of records we have, so we know how many to read in!...
author
Chris Lattner
<sabre@nondot.org>
Tue, 28 Oct 2003 19:35:56 +0000
(19:35 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/runtime/libprofile/CommonProfiling.c
b/runtime/libprofile/CommonProfiling.c
index ea795b6989e98d33765d09cd4958e738297df008..e5cfbe3b78817acc2cb6c27c002d3c04313dfd54 100644
(file)
--- 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));
}