11f9cb04fSpatrick /*===- InstrProfilingInternal.c - Support library for PGO instrumentation -===*\ 21f9cb04fSpatrick |* 31f9cb04fSpatrick |* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 41f9cb04fSpatrick |* See https://llvm.org/LICENSE.txt for license information. 51f9cb04fSpatrick |* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 61f9cb04fSpatrick |* 71f9cb04fSpatrick \*===----------------------------------------------------------------------===*/ 81f9cb04fSpatrick 9d89ec533Spatrick // Note: This is linked into the Darwin kernel, and must remain compatible 10d89ec533Spatrick // with freestanding compilation. See `darwin_add_builtin_libraries`. 11d89ec533Spatrick 121f9cb04fSpatrick #if !defined(__Fuchsia__) 131f9cb04fSpatrick 141f9cb04fSpatrick #include "InstrProfilingInternal.h" 151f9cb04fSpatrick 161f9cb04fSpatrick static unsigned ProfileDumped = 0; 171f9cb04fSpatrick lprofProfileDumped(void)18*810390e3SrobertCOMPILER_RT_VISIBILITY unsigned lprofProfileDumped(void) { 191f9cb04fSpatrick return ProfileDumped; 201f9cb04fSpatrick } 211f9cb04fSpatrick lprofSetProfileDumped(unsigned Value)221f9cb04fSpatrickCOMPILER_RT_VISIBILITY void lprofSetProfileDumped(unsigned Value) { 231f9cb04fSpatrick ProfileDumped = Value; 241f9cb04fSpatrick } 251f9cb04fSpatrick 261f9cb04fSpatrick #endif 27