[compiler-rt] a672b7a - [InstrProf] Make __llvm_profile_counter_bias_default hidden

Alex Brachet via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 5 23:18:45 PDT 2022


Author: Alex Brachet
Date: 2022-10-06T06:16:22Z
New Revision: a672b7a7d7e8940fa833e23b583305e59c3f1209

URL: https://github.com/llvm/llvm-project/commit/a672b7a7d7e8940fa833e23b583305e59c3f1209
DIFF: https://github.com/llvm/llvm-project/commit/a672b7a7d7e8940fa833e23b583305e59c3f1209.diff

LOG: [InstrProf] Make __llvm_profile_counter_bias_default hidden

This symbol shouldn't have default visibility.

Differential Revision: https://reviews.llvm.org/D135346

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/profile/InstrProfilingFile.c b/compiler-rt/lib/profile/InstrProfilingFile.c
index 31cd7766ae79..f74be55bcd5e 100644
--- a/compiler-rt/lib/profile/InstrProfilingFile.c
+++ b/compiler-rt/lib/profile/InstrProfilingFile.c
@@ -161,7 +161,7 @@ static int mmapForContinuousMode(uint64_t CurrentFileOffset, FILE *File) {
 
 #define INSTR_PROF_PROFILE_COUNTER_BIAS_DEFAULT_VAR                            \
   INSTR_PROF_CONCAT(INSTR_PROF_PROFILE_COUNTER_BIAS_VAR, _default)
-intptr_t INSTR_PROF_PROFILE_COUNTER_BIAS_DEFAULT_VAR = 0;
+COMPILER_RT_VISIBILITY intptr_t INSTR_PROF_PROFILE_COUNTER_BIAS_DEFAULT_VAR = 0;
 
 /* This variable is a weak external reference which could be used to detect
  * whether or not the compiler defined this symbol. */


        


More information about the llvm-commits mailing list