summaryrefslogtreecommitdiff
path: root/runtime/libprofile
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-05-04 16:51:46 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-05-04 16:51:46 +0000
commit40114b780b1f1243e5b4dcc45e6685b3c77d3b32 (patch)
tree6849713006b5f75cb76d9eaa4a294b302aff371c /runtime/libprofile
parent9eb9b8ecb9c02244fa5c7b96812c45239d6ffb85 (diff)
downloadllvm-40114b780b1f1243e5b4dcc45e6685b3c77d3b32.tar.gz
llvm-40114b780b1f1243e5b4dcc45e6685b3c77d3b32.tar.bz2
llvm-40114b780b1f1243e5b4dcc45e6685b3c77d3b32.tar.xz
Constants for profile info type changed names to match the C++ ones.
Edited comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13343 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/libprofile')
-rw-r--r--runtime/libprofile/BlockProfiling.c11
-rw-r--r--runtime/libprofile/EdgeProfiling.c12
2 files changed, 12 insertions, 11 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);
}
diff --git a/runtime/libprofile/EdgeProfiling.c b/runtime/libprofile/EdgeProfiling.c
index 942b63221a..cf717664f3 100644
--- a/runtime/libprofile/EdgeProfiling.c
+++ b/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);
}