xref: /src/contrib/llvm-project/compiler-rt/lib/profile/InstrProfilingVersionVar.c (revision bdd1243df58e60e85101c09001d9812a789b6bc4)
1b60736ecSDimitry Andric /*===- InstrProfilingVersionVar.c - profile version variable setup  -------===*\
2b60736ecSDimitry Andric |*
3b60736ecSDimitry Andric |* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4b60736ecSDimitry Andric |* See https://llvm.org/LICENSE.txt for license information.
5b60736ecSDimitry Andric |* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6b60736ecSDimitry Andric |*
7b60736ecSDimitry Andric \*===----------------------------------------------------------------------===*/
8b60736ecSDimitry Andric 
9b60736ecSDimitry Andric #include "InstrProfiling.h"
10b60736ecSDimitry Andric 
11b60736ecSDimitry Andric /* uint64 __llvm_profile_raw_version
12b60736ecSDimitry Andric  *
13b60736ecSDimitry Andric  * The runtime should only provide its own definition of this symbol when the
14b60736ecSDimitry Andric  * user has not specified one. Set this up by moving the runtime's copy of this
15b60736ecSDimitry Andric  * symbol to an object file within the archive.
16b60736ecSDimitry Andric  */
17e3b55780SDimitry Andric COMPILER_RT_VISIBILITY COMPILER_RT_WEAK uint64_t INSTR_PROF_RAW_VERSION_VAR =
18c0981da4SDimitry Andric     INSTR_PROF_RAW_VERSION;
19