[compiler-rt] r272089 - [profile] Un-hide two symbols

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 7 18:33:15 PDT 2016


Author: vedantk
Date: Tue Jun  7 20:33:15 2016
New Revision: 272089

URL: http://llvm.org/viewvc/llvm-project?rev=272089&view=rev
Log:
[profile] Un-hide two symbols

- lprofCurFilename was intended to have external visibility. This is
  pending further discussion.
- The raw version number doesn't need to be hidden: hiding it may make
  it easier to accidentally combine FE/IR profiles.

See the mailing list discussion on r272081.

Modified:
    compiler-rt/trunk/lib/profile/InstrProfiling.c
    compiler-rt/trunk/lib/profile/InstrProfilingFile.c

Modified: compiler-rt/trunk/lib/profile/InstrProfiling.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfiling.c?rev=272089&r1=272088&r2=272089&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfiling.c (original)
+++ compiler-rt/trunk/lib/profile/InstrProfiling.c Tue Jun  7 20:33:15 2016
@@ -18,8 +18,7 @@
 
 COMPILER_RT_VISIBILITY char *(*GetEnvHook)(const char *) = 0;
 
-COMPILER_RT_VISIBILITY COMPILER_RT_WEAK uint64_t __llvm_profile_raw_version =
-    INSTR_PROF_RAW_VERSION;
+COMPILER_RT_WEAK uint64_t __llvm_profile_raw_version = INSTR_PROF_RAW_VERSION;
 
 COMPILER_RT_VISIBILITY uint64_t __llvm_profile_get_magic(void) {
   return sizeof(void *) == sizeof(uint64_t) ? (INSTR_PROF_RAW_MAGIC_64)

Modified: compiler-rt/trunk/lib/profile/InstrProfilingFile.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingFile.c?rev=272089&r1=272088&r2=272089&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingFile.c (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingFile.c Tue Jun  7 20:33:15 2016
@@ -30,7 +30,7 @@ typedef struct lprofFilename {
   unsigned NumHosts;
 } lprofFilename;
 
-COMPILER_RT_VISIBILITY lprofFilename lprofCurFilename = {0, {0}, {0}, 0, 0};
+lprofFilename lprofCurFilename = {0, {0}, {0}, 0, 0};
 
 int getpid(void);
 static int getCurFilenameLength();




More information about the llvm-commits mailing list