diff options
author | Xinliang David Li <davidxl@google.com> | 2015-12-16 03:29:15 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2015-12-16 03:29:15 +0000 |
commit | 004273c0321f96065e840610853f1524f90de84a (patch) | |
tree | 537952ed3466e2d8418f7fff1deb54b0a40d86e2 /lib/profile/InstrProfilingPlatformDarwin.c | |
parent | faa5183b5858b8777c41cb13a563710d301bce07 (diff) | |
download | compiler-rt-004273c0321f96065e840610853f1524f90de84a.tar.gz |
[PGO] cleanup: unify prefix for portability macros
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@255748 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 3da0f18c5..30ddbd2e4 100644 --- a/lib/profile/InstrProfilingPlatformDarwin.c +++ b/lib/profile/InstrProfilingPlatformDarwin.c @@ -11,36 +11,36 @@ #if defined(__APPLE__) /* Use linker magic to find the bounds of the Data section. */ -LLVM_LIBRARY_VISIBILITY +COMPILER_RT_VISIBILITY extern __llvm_profile_data DataStart __asm("section$start$__DATA$" INSTR_PROF_DATA_SECT_NAME_STR); -LLVM_LIBRARY_VISIBILITY +COMPILER_RT_VISIBILITY extern __llvm_profile_data DataEnd __asm("section$end$__DATA$" INSTR_PROF_DATA_SECT_NAME_STR); -LLVM_LIBRARY_VISIBILITY +COMPILER_RT_VISIBILITY extern char NamesStart __asm("section$start$__DATA$" INSTR_PROF_NAME_SECT_NAME_STR); -LLVM_LIBRARY_VISIBILITY +COMPILER_RT_VISIBILITY extern char NamesEnd __asm("section$end$__DATA$" INSTR_PROF_NAME_SECT_NAME_STR); -LLVM_LIBRARY_VISIBILITY +COMPILER_RT_VISIBILITY extern uint64_t CountersStart __asm("section$start$__DATA$" INSTR_PROF_CNTS_SECT_NAME_STR); -LLVM_LIBRARY_VISIBILITY +COMPILER_RT_VISIBILITY extern uint64_t CountersEnd __asm("section$end$__DATA$" INSTR_PROF_CNTS_SECT_NAME_STR); -LLVM_LIBRARY_VISIBILITY +COMPILER_RT_VISIBILITY const __llvm_profile_data *__llvm_profile_begin_data(void) { return &DataStart; } -LLVM_LIBRARY_VISIBILITY +COMPILER_RT_VISIBILITY const __llvm_profile_data *__llvm_profile_end_data(void) { return &DataEnd; } -LLVM_LIBRARY_VISIBILITY +COMPILER_RT_VISIBILITY const char *__llvm_profile_begin_names(void) { return &NamesStart; } -LLVM_LIBRARY_VISIBILITY +COMPILER_RT_VISIBILITY const char *__llvm_profile_end_names(void) { return &NamesEnd; } -LLVM_LIBRARY_VISIBILITY +COMPILER_RT_VISIBILITY uint64_t *__llvm_profile_begin_counters(void) { return &CountersStart; } -LLVM_LIBRARY_VISIBILITY +COMPILER_RT_VISIBILITY uint64_t *__llvm_profile_end_counters(void) { return &CountersEnd; } #endif |