xref: /llvm-project/compiler-rt/lib/profile/InstrProfilingVersionVar.c (revision 443e2a10f69caeedb9fa621366b16fe0d4358279)
10f6220ddSMin-Yih Hsu /*===- InstrProfilingVersionVar.c - profile version variable setup  -------===*\
20f6220ddSMin-Yih Hsu |*
30f6220ddSMin-Yih Hsu |* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40f6220ddSMin-Yih Hsu |* See https://llvm.org/LICENSE.txt for license information.
50f6220ddSMin-Yih Hsu |* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60f6220ddSMin-Yih Hsu |*
70f6220ddSMin-Yih Hsu \*===----------------------------------------------------------------------===*/
80f6220ddSMin-Yih Hsu 
90f6220ddSMin-Yih Hsu #include "InstrProfiling.h"
100f6220ddSMin-Yih Hsu 
110f6220ddSMin-Yih Hsu /* uint64 __llvm_profile_raw_version
120f6220ddSMin-Yih Hsu  *
130f6220ddSMin-Yih Hsu  * The runtime should only provide its own definition of this symbol when the
140f6220ddSMin-Yih Hsu  * user has not specified one. Set this up by moving the runtime's copy of this
150f6220ddSMin-Yih Hsu  * symbol to an object file within the archive.
160f6220ddSMin-Yih Hsu  */
17*443e2a10SAlex Brachet COMPILER_RT_VISIBILITY COMPILER_RT_WEAK uint64_t INSTR_PROF_RAW_VERSION_VAR =
18078279ffSPirama Arumuga Nainar     INSTR_PROF_RAW_VERSION;
19