File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -301,11 +301,14 @@ void __llvm_profile_set_dumped();
301
301
COMPILER_RT_VISIBILITY extern int INSTR_PROF_PROFILE_RUNTIME_VAR ;
302
302
303
303
/*!
304
- * This variable is defined in InstrProfilingVersionVar.c as a hidden symbol.
305
- * Its main purpose is to encode the raw profile version value and other format
306
- * related information such as whether the profile is from IR based
307
- * instrumentation. The variable is defined as weak so that compiler can emit an
308
- * overriding definition depending on user option.
304
+ * This variable is defined in InstrProfiling.c. Its main purpose is to
305
+ * encode the raw profile version value and other format related information
306
+ * such as whether the profile is from IR based instrumentation. The variable
307
+ * is defined as weak so that compiler can emit an overriding definition
308
+ * depending on user option. Since we don't support mixing FE and IR based
309
+ * data in the same raw profile data file (in other words, shared libs and
310
+ * main program are expected to be instrumented in the same way), there is
311
+ * no need for this variable to be hidden.
309
312
*/
310
313
extern uint64_t INSTR_PROF_RAW_VERSION_VAR ; /* __llvm_profile_raw_version */
311
314
Original file line number Diff line number Diff line change 14
14
* user has not specified one. Set this up by moving the runtime's copy of this
15
15
* symbol to an object file within the archive.
16
16
*/
17
- COMPILER_RT_VISIBILITY COMPILER_RT_WEAK uint64_t INSTR_PROF_RAW_VERSION_VAR =
18
- INSTR_PROF_RAW_VERSION ;
17
+ COMPILER_RT_WEAK uint64_t INSTR_PROF_RAW_VERSION_VAR = INSTR_PROF_RAW_VERSION ;
You can’t perform that action at this time.
0 commit comments