xref: /openbsd-src/gnu/llvm/compiler-rt/lib/profile/InstrProfilingNameVar.c (revision 810390e339a5425391477d5d41c78d7cab2424ac)
13cab2bb3Spatrick /*===- InstrProfilingNameVar.c - profile name variable setup  -------------===*\
23cab2bb3Spatrick |*
33cab2bb3Spatrick |* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
43cab2bb3Spatrick |* See https://llvm.org/LICENSE.txt for license information.
53cab2bb3Spatrick |* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
63cab2bb3Spatrick |*
73cab2bb3Spatrick \*===----------------------------------------------------------------------===*/
83cab2bb3Spatrick 
93cab2bb3Spatrick #include "InstrProfiling.h"
103cab2bb3Spatrick 
113cab2bb3Spatrick /* char __llvm_profile_filename[1]
123cab2bb3Spatrick  *
133cab2bb3Spatrick  * The runtime should only provide its own definition of this symbol when the
143cab2bb3Spatrick  * user has not specified one. Set this up by moving the runtime's copy of this
153cab2bb3Spatrick  * symbol to an object file within the archive.
163cab2bb3Spatrick  */
17*810390e3Srobert COMPILER_RT_WEAK COMPILER_RT_VISIBILITY char INSTR_PROF_PROFILE_NAME_VAR[1] = {0};
18