diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-09-04 15:45:31 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-09-04 15:45:31 +0000 |
commit | 88c36887e0adec160d5a21c27bf5b9425a7d7f35 (patch) | |
tree | 7cce5f08e92927ccf2436785f83a1e46f4498c81 /lib/profile/InstrProfiling.c | |
parent | 3c96c1e527878ad7d5222ad6a18fe16a29b7e775 (diff) |
profile: Avoid name collisions between instrumentation and runtime
The naming scheme we're using for counters in profile data shares a
prefix with some fixed names we use for the runtime, notably
__llvm_profile_data_begin and _end. Embarrassingly, this means a
function called begin() can't be instrumented.
This modifies the runtime names so as not to collide with the
instrumentation.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217166 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfiling.c')
-rw-r--r-- | lib/profile/InstrProfiling.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/profile/InstrProfiling.c b/lib/profile/InstrProfiling.c index aeb3681aa..8d010df28 100644 --- a/lib/profile/InstrProfiling.c +++ b/lib/profile/InstrProfiling.c @@ -41,8 +41,8 @@ uint64_t __llvm_profile_get_version(void) { __attribute__((visibility("hidden"))) void __llvm_profile_reset_counters(void) { - uint64_t *I = __llvm_profile_counters_begin(); - uint64_t *E = __llvm_profile_counters_end(); + uint64_t *I = __llvm_profile_begin_counters(); + uint64_t *E = __llvm_profile_end_counters(); memset(I, 0, sizeof(uint64_t)*(E - I)); } |