summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/runtime/libprofile/BlockProfiling.c11
-rw-r--r--llvm/runtime/libprofile/EdgeProfiling.c12
2 files changed, 12 insertions, 11 deletions
diff --git a/llvm/runtime/libprofile/BlockProfiling.c b/llvm/runtime/libprofile/BlockProfiling.c
index 8170ce4cb43..2b1b0116172 100644
--- a/llvm/runtime/libprofile/BlockProfiling.c
+++ b/llvm/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);
}
diff --git a/llvm/runtime/libprofile/EdgeProfiling.c b/llvm/runtime/libprofile/EdgeProfiling.c
index 942b63221a3..cf717664f32 100644
--- a/llvm/runtime/libprofile/EdgeProfiling.c
+++ b/llvm/runtime/libprofile/EdgeProfiling.c
@@ -23,12 +23,12 @@ static unsigned NumElements;
* data.
*/
static void EdgeProfAtExitHandler() {
- /* 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 edge profiles. Since we directly count each edge, we
- just write out all of the counters directly.
- */
- write_profiling_data(Edge, 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 edge profiles. Since we directly count each edge, we
+ * just write out all of the counters directly.
+ */
+ write_profiling_data(EdgeInfo, ArrayStart, NumElements);
}
OpenPOWER on IntegriCloud