summaryrefslogtreecommitdiff
path: root/runtime/libprofile/BlockProfiling.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/libprofile/BlockProfiling.c')
-rw-r--r--runtime/libprofile/BlockProfiling.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/runtime/libprofile/BlockProfiling.c b/runtime/libprofile/BlockProfiling.c
index 8170ce4cb4..2b1b011617 100644
--- a/runtime/libprofile/BlockProfiling.c
+++ b/runtime/libprofile/BlockProfiling.c
@@ -23,11 +23,12 @@ static unsigned NumElements;
* data.
*/
static void BlockProfAtExitHandler() {
- /* Note that if this were doing something more intellegent with the
- instrumentation, that we could do some computation here to expand what we
- collected into simple block profiles. Since we directly count each block,
- */
- write_profiling_data(Block, ArrayStart, NumElements);
+ /* Note that if this were doing something more intelligent with the
+ * instrumentation, we could do some computation here to expand what we
+ * collected into simple block profiles. (Or we could do it in llvm-prof.)
+ * Regardless, we directly count each block, so no expansion is necessary.
+ */
+ write_profiling_data(BlockInfo, ArrayStart, NumElements);
}