[MSan] Deprecate __msan_set_death_callback() in favor of __sanitizer_set_death_callback().

llvm-svn: 245754
This commit is contained in:
Alexey Samsonov 2015-08-21 22:45:12 +00:00
parent c86c162a58
commit 540ac1aab4
4 changed files with 2 additions and 9 deletions

View File

@ -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

View File

@ -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

View File

@ -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);

View File

@ -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) {