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 | abfd553c2be6a8d7e57770dcbdbebf90149236ce (patch) | |
tree | 779790cd275a5a7afd3c2fb9a567298b29e73c13 /compiler-rt/lib/profile/InstrProfilingFile.c | |
parent | cd817ba2effd1c9f2b2760d95941a7f3abc859a2 (diff) | |
download | bcm5719-llvm-abfd553c2be6a8d7e57770dcbdbebf90149236ce.tar.gz bcm5719-llvm-abfd553c2be6a8d7e57770dcbdbebf90149236ce.zip |
[PGO] cleanup: unify prefix for portability macros
llvm-svn: 255748
Diffstat (limited to 'compiler-rt/lib/profile/InstrProfilingFile.c')
-rw-r--r-- | compiler-rt/lib/profile/InstrProfilingFile.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/compiler-rt/lib/profile/InstrProfilingFile.c b/compiler-rt/lib/profile/InstrProfilingFile.c index ac0eeff6bda..7f2923c3065 100644 --- a/compiler-rt/lib/profile/InstrProfilingFile.c +++ b/compiler-rt/lib/profile/InstrProfilingFile.c @@ -56,8 +56,8 @@ static int writeFileWithName(const char *OutputName) { return RetVal; } -LLVM_LIBRARY_WEAK int __llvm_profile_OwnsFilename = 0; -LLVM_LIBRARY_WEAK const char *__llvm_profile_CurrentFilename = NULL; +COMPILER_RT_WEAK int __llvm_profile_OwnsFilename = 0; +COMPILER_RT_WEAK const char *__llvm_profile_CurrentFilename = NULL; static void truncateCurrentFile(void) { const char *Filename; @@ -164,7 +164,7 @@ static void setFilenameAutomatically(void) { resetFilenameToDefault(); } -LLVM_LIBRARY_VISIBILITY +COMPILER_RT_VISIBILITY void __llvm_profile_initialize_file(void) { /* Check if the filename has been initialized. */ if (__llvm_profile_CurrentFilename) @@ -174,12 +174,12 @@ void __llvm_profile_initialize_file(void) { setFilenameAutomatically(); } -LLVM_LIBRARY_VISIBILITY +COMPILER_RT_VISIBILITY void __llvm_profile_set_filename(const char *Filename) { setFilenamePossiblyWithPid(Filename); } -LLVM_LIBRARY_VISIBILITY +COMPILER_RT_VISIBILITY void __llvm_profile_override_default_filename(const char *Filename) { /* If the env var is set, skip setting filename from argument. */ const char *Env_Filename = getenv("LLVM_PROFILE_FILE"); @@ -188,7 +188,7 @@ void __llvm_profile_override_default_filename(const char *Filename) { setFilenamePossiblyWithPid(Filename); } -LLVM_LIBRARY_VISIBILITY +COMPILER_RT_VISIBILITY int __llvm_profile_write_file(void) { int rc; @@ -209,7 +209,7 @@ int __llvm_profile_write_file(void) { static void writeFileWithoutReturn(void) { __llvm_profile_write_file(); } -LLVM_LIBRARY_VISIBILITY +COMPILER_RT_VISIBILITY int __llvm_profile_register_write_file_atexit(void) { static int HasBeenRegistered = 0; |