Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/contrib/llvm-project/compiler-rt/lib/memprof/memprof_init_version.h
35236 views
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.
10
//
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
16
17
#include "sanitizer_common/sanitizer_platform.h"
18
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
24
}
25
26
#endif // MEMPROF_INIT_VERSION_H
27
28