27 lines · c
1//===-- memprof_init_version.h ---------------------------------*- C++ -*-===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8//9// This file is a part of MemProfiler, a memory profiler.10//11// This header defines a versioned __memprof_init function to be called at the12// startup of the instrumented program.13//===----------------------------------------------------------------------===//14#ifndef MEMPROF_INIT_VERSION_H15#define MEMPROF_INIT_VERSION_H16 17#include "sanitizer_common/sanitizer_platform.h"18 19extern "C" {20// Every time the Memprof ABI changes we also change the version number in the21// __memprof_init function name. Objects built with incompatible Memprof ABI22// versions will not link with run-time.23#define __memprof_version_mismatch_check __memprof_version_mismatch_check_v124}25 26#endif // MEMPROF_INIT_VERSION_H27