memprof_init_version.h 1.0 KB

1234567891011121314151617181920212223242526
  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. #include "sanitizer_common/sanitizer_platform.h"
  17. extern "C" {
  18. // Every time the Memprof ABI changes we also change the version number in the
  19. // __memprof_init function name. Objects built with incompatible Memprof ABI
  20. // versions will not link with run-time.
  21. #define __memprof_version_mismatch_check __memprof_version_mismatch_check_v1
  22. }
  23. #endif // MEMPROF_INIT_VERSION_H