From a672b7a7d7e8940fa833e23b583305e59c3f1209 Mon Sep 17 00:00:00 2001 From: Alex Brachet Date: Thu, 6 Oct 2022 06:16:22 +0000 Subject: [PATCH] [InstrProf] Make __llvm_profile_counter_bias_default hidden This symbol shouldn't have default visibility. Differential Revision: https://reviews.llvm.org/D135346 --- compiler-rt/lib/profile/InstrProfilingFile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/profile/InstrProfilingFile.c b/compiler-rt/lib/profile/InstrProfilingFile.c index 31cd776..f74be55 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. */ -- 2.7.4