Path: blob/main/contrib/llvm-project/compiler-rt/lib/memprof/memprof_init_version.h
35236 views
//===-- memprof_init_version.h ---------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file is a part of MemProfiler, a memory profiler.9//10// This header defines a versioned __memprof_init function to be called at the11// startup of the instrumented program.12//===----------------------------------------------------------------------===//13#ifndef MEMPROF_INIT_VERSION_H14#define MEMPROF_INIT_VERSION_H1516#include "sanitizer_common/sanitizer_platform.h"1718extern "C" {19// Every time the Memprof ABI changes we also change the version number in the20// __memprof_init function name. Objects built with incompatible Memprof ABI21// versions will not link with run-time.22#define __memprof_version_mismatch_check __memprof_version_mismatch_check_v123}2425#endif // MEMPROF_INIT_VERSION_H262728