mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 11:26:42 +00:00

This is necessary for many projects which pass `/Gz` to their compiles, which makes their default calling convention `__stdcall`. (personal note, I _really_ wish there was a pragma for this)
37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
//===-- sanitizer/coverage_interface.h --------------------------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Public interface for sanitizer coverage.
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef SANITIZER_COVERAG_INTERFACE_H
|
|
#define SANITIZER_COVERAG_INTERFACE_H
|
|
|
|
#include <sanitizer/common_interface_defs.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// Record and dump coverage info.
|
|
void SANITIZER_CDECL __sanitizer_cov_dump(void);
|
|
|
|
// Clear collected coverage info.
|
|
void SANITIZER_CDECL __sanitizer_cov_reset(void);
|
|
|
|
// Dump collected coverage info. Sorts pcs by module into individual .sancov
|
|
// files.
|
|
void SANITIZER_CDECL __sanitizer_dump_coverage(const uintptr_t *pcs,
|
|
uintptr_t len);
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif
|
|
|
|
#endif // SANITIZER_COVERAG_INTERFACE_H
|