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/InstrProfiling.c | |
parent | faa5183b5858b8777c41cb13a563710d301bce07 (diff) |
[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/InstrProfiling.c')
-rw-r--r-- | lib/profile/InstrProfiling.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/profile/InstrProfiling.c b/lib/profile/InstrProfiling.c index e6be7e722..58778aeec 100644 --- a/lib/profile/InstrProfiling.c +++ b/lib/profile/InstrProfiling.c @@ -18,7 +18,7 @@ char *(*GetEnvHook)(const char *) = 0; -LLVM_LIBRARY_VISIBILITY uint64_t __llvm_profile_get_magic(void) { +COMPILER_RT_VISIBILITY uint64_t __llvm_profile_get_magic(void) { return sizeof(void *) == sizeof(uint64_t) ? (INSTR_PROF_RAW_MAGIC_64) : (INSTR_PROF_RAW_MAGIC_32); } @@ -26,16 +26,16 @@ LLVM_LIBRARY_VISIBILITY uint64_t __llvm_profile_get_magic(void) { /* Return the number of bytes needed to add to SizeInBytes to make it * the result a multiple of 8. */ -LLVM_LIBRARY_VISIBILITY uint8_t +COMPILER_RT_VISIBILITY uint8_t __llvm_profile_get_num_padding_bytes(uint64_t SizeInBytes) { return 7 & (sizeof(uint64_t) - SizeInBytes % sizeof(uint64_t)); } -LLVM_LIBRARY_VISIBILITY uint64_t __llvm_profile_get_version(void) { +COMPILER_RT_VISIBILITY uint64_t __llvm_profile_get_version(void) { return INSTR_PROF_RAW_VERSION; } -LLVM_LIBRARY_VISIBILITY void __llvm_profile_reset_counters(void) { +COMPILER_RT_VISIBILITY void __llvm_profile_reset_counters(void) { uint64_t *I = __llvm_profile_begin_counters(); uint64_t *E = __llvm_profile_end_counters(); |