mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-25 14:50:26 +00:00
[MSan] Deprecate __msan_set_death_callback() in favor of __sanitizer_set_death_callback().
llvm-svn: 245754
This commit is contained in:
parent
c86c162a58
commit
540ac1aab4
@ -95,8 +95,7 @@ extern "C" {
|
||||
a string containing Msan runtime options. See msan_flags.h for details. */
|
||||
const char* __msan_default_options();
|
||||
|
||||
/* Sets the callback to be called right before death on error.
|
||||
Passing 0 will unset the callback. */
|
||||
/* Deprecated. Call __sanitizer_set_death_callback instead. */
|
||||
void __msan_set_death_callback(void (*callback)(void));
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -90,8 +90,6 @@ bool msan_init_is_running;
|
||||
|
||||
int msan_report_count = 0;
|
||||
|
||||
void (*death_callback)(void);
|
||||
|
||||
// Array of stack origins.
|
||||
// FIXME: make it resizable.
|
||||
static const uptr kNumStackOriginDescrs = 1024 * 1024;
|
||||
@ -623,7 +621,7 @@ void __sanitizer_unaligned_store64(uu64 *p, u64 x) {
|
||||
}
|
||||
|
||||
void __msan_set_death_callback(void (*callback)(void)) {
|
||||
death_callback = callback;
|
||||
SetUserDieCallback(callback);
|
||||
}
|
||||
|
||||
#if !SANITIZER_SUPPORTS_WEAK_HOOKS
|
||||
|
@ -224,8 +224,6 @@ class ScopedThreadLocalStateBackup {
|
||||
u64 va_arg_overflow_size_tls;
|
||||
};
|
||||
|
||||
extern void (*death_callback)(void);
|
||||
|
||||
void MsanTSDInit(void (*destructor)(void *tsd));
|
||||
void *MsanTSDGet();
|
||||
void MsanTSDSet(void *tsd);
|
||||
|
@ -154,8 +154,6 @@ bool InitShadow(bool init_origins) {
|
||||
void MsanDie() {
|
||||
if (common_flags()->coverage)
|
||||
__sanitizer_cov_dump();
|
||||
if (death_callback)
|
||||
death_callback();
|
||||
}
|
||||
|
||||
static void MsanAtExit(void) {
|
||||
|
Loading…
Reference in New Issue
Block a user