[docs] Update HowToReleaseLLVM documentation.
[llvm-project.git] / compiler-rt / lib / memprof / memprof_init_version.h
blob26c68f78677adf4fd5f30833cee1a882c3dfae89
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-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file is a part of MemProfiler, a memory profiler.
11 // This header defines a versioned __memprof_init function to be called at the
12 // startup of the instrumented program.
13 //===----------------------------------------------------------------------===//
14 #ifndef MEMPROF_INIT_VERSION_H
15 #define MEMPROF_INIT_VERSION_H
17 #include "sanitizer_common/sanitizer_platform.h"
19 extern "C" {
20 // Every time the Memprof ABI changes we also change the version number in the
21 // __memprof_init function name. Objects built with incompatible Memprof ABI
22 // versions will not link with run-time.
23 #define __memprof_version_mismatch_check __memprof_version_mismatch_check_v1
26 #endif // MEMPROF_INIT_VERSION_H