forked from OSchip/llvm-project
Revert "[compiler-rt/profile] Hide __llvm_profile_raw_version"
This reverts commit 69708477be
to unblock
instrprof-darwin-exports.c failure on MacOS bots.
This commit is contained in:
parent
d55be79d75
commit
ab3d5d0533
|
@ -301,11 +301,14 @@ void __llvm_profile_set_dumped();
|
||||||
COMPILER_RT_VISIBILITY extern int INSTR_PROF_PROFILE_RUNTIME_VAR;
|
COMPILER_RT_VISIBILITY extern int INSTR_PROF_PROFILE_RUNTIME_VAR;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* This variable is defined in InstrProfilingVersionVar.c as a hidden symbol.
|
* This variable is defined in InstrProfiling.c. Its main purpose is to
|
||||||
* Its main purpose is to encode the raw profile version value and other format
|
* encode the raw profile version value and other format related information
|
||||||
* related information such as whether the profile is from IR based
|
* such as whether the profile is from IR based instrumentation. The variable
|
||||||
* instrumentation. The variable is defined as weak so that compiler can emit an
|
* is defined as weak so that compiler can emit an overriding definition
|
||||||
* overriding definition depending on user option.
|
* depending on user option. Since we don't support mixing FE and IR based
|
||||||
|
* data in the same raw profile data file (in other words, shared libs and
|
||||||
|
* main program are expected to be instrumented in the same way), there is
|
||||||
|
* no need for this variable to be hidden.
|
||||||
*/
|
*/
|
||||||
extern uint64_t INSTR_PROF_RAW_VERSION_VAR; /* __llvm_profile_raw_version */
|
extern uint64_t INSTR_PROF_RAW_VERSION_VAR; /* __llvm_profile_raw_version */
|
||||||
|
|
||||||
|
|
|
@ -14,5 +14,4 @@
|
||||||
* user has not specified one. Set this up by moving the runtime's copy of this
|
* user has not specified one. Set this up by moving the runtime's copy of this
|
||||||
* symbol to an object file within the archive.
|
* symbol to an object file within the archive.
|
||||||
*/
|
*/
|
||||||
COMPILER_RT_VISIBILITY COMPILER_RT_WEAK uint64_t INSTR_PROF_RAW_VERSION_VAR =
|
COMPILER_RT_WEAK uint64_t INSTR_PROF_RAW_VERSION_VAR = INSTR_PROF_RAW_VERSION;
|
||||||
INSTR_PROF_RAW_VERSION;
|
|
||||||
|
|
Loading…
Reference in New Issue