diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-03-20 20:00:44 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-03-20 20:00:44 +0000 |
commit | 466c14d333316d80cdf0f3526988eb6cde998c30 (patch) | |
tree | 1eff7457191629e0366f63573395fc608e4097aa /lib/profile/InstrProfilingPlatformDarwin.c | |
parent | 26fd98f10dccdd6665e7308bb4835173f75628a0 (diff) |
PGO: Change runtime prefix from pgo to profile
These functions are in the profile runtime. PGO comes later.
Unfortunately, there's only room for 16 characters in a Darwin section,
so use __llvm_prf_ instead of __llvm_profile_ for section names.
<rdar://problem/15943240>
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204391 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfilingPlatformDarwin.c')
-rw-r--r-- | lib/profile/InstrProfilingPlatformDarwin.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/profile/InstrProfilingPlatformDarwin.c b/lib/profile/InstrProfilingPlatformDarwin.c index decd6b09b..3150a2392 100644 --- a/lib/profile/InstrProfilingPlatformDarwin.c +++ b/lib/profile/InstrProfilingPlatformDarwin.c @@ -10,16 +10,16 @@ #include "InstrProfiling.h" /* Use linker magic to find the bounds of the Data section. */ -extern __llvm_pgo_data DataStart __asm("section$start$__DATA$__llvm_pgo_data"); -extern __llvm_pgo_data DataEnd __asm("section$end$__DATA$__llvm_pgo_data"); -extern char NamesStart __asm("section$start$__DATA$__llvm_pgo_names"); -extern char NamesEnd __asm("section$end$__DATA$__llvm_pgo_names"); -extern uint64_t CountersStart __asm("section$start$__DATA$__llvm_pgo_cnts"); -extern uint64_t CountersEnd __asm("section$end$__DATA$__llvm_pgo_cnts"); +extern __llvm_profile_data DataStart __asm("section$start$__DATA$__llvm_prf_data"); +extern __llvm_profile_data DataEnd __asm("section$end$__DATA$__llvm_prf_data"); +extern char NamesStart __asm("section$start$__DATA$__llvm_prf_names"); +extern char NamesEnd __asm("section$end$__DATA$__llvm_prf_names"); +extern uint64_t CountersStart __asm("section$start$__DATA$__llvm_prf_cnts"); +extern uint64_t CountersEnd __asm("section$end$__DATA$__llvm_prf_cnts"); -const __llvm_pgo_data *__llvm_pgo_data_begin() { return &DataStart; } -const __llvm_pgo_data *__llvm_pgo_data_end() { return &DataEnd; } -const char *__llvm_pgo_names_begin() { return &NamesStart; } -const char *__llvm_pgo_names_end() { return &NamesEnd; } -uint64_t *__llvm_pgo_counters_begin() { return &CountersStart; } -uint64_t *__llvm_pgo_counters_end() { return &CountersEnd; } +const __llvm_profile_data *__llvm_profile_data_begin() { return &DataStart; } +const __llvm_profile_data *__llvm_profile_data_end() { return &DataEnd; } +const char *__llvm_profile_names_begin() { return &NamesStart; } +const char *__llvm_profile_names_end() { return &NamesEnd; } +uint64_t *__llvm_profile_counters_begin() { return &CountersStart; } +uint64_t *__llvm_profile_counters_end() { return &CountersEnd; } |