diff options
Diffstat (limited to 'contrib/llvm-project/compiler-rt/lib/gwp_asan/optional/segv_handler_fuchsia.cpp')
-rw-r--r-- | contrib/llvm-project/compiler-rt/lib/gwp_asan/optional/segv_handler_fuchsia.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/llvm-project/compiler-rt/lib/gwp_asan/optional/segv_handler_fuchsia.cpp b/contrib/llvm-project/compiler-rt/lib/gwp_asan/optional/segv_handler_fuchsia.cpp new file mode 100644 index 000000000000..f5ff35e27ac2 --- /dev/null +++ b/contrib/llvm-project/compiler-rt/lib/gwp_asan/optional/segv_handler_fuchsia.cpp @@ -0,0 +1,23 @@ +//===-- segv_handler_fuchsia.cpp --------------------------------*- 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 +// +//===----------------------------------------------------------------------===// + +#include "gwp_asan/optional/segv_handler.h" + +// GWP-ASan on Fuchsia doesn't currently support signal handlers. + +namespace gwp_asan { +namespace segv_handler { +void installSignalHandlers(gwp_asan::GuardedPoolAllocator * /* GPA */, + Printf_t /* Printf */, + backtrace::PrintBacktrace_t /* PrintBacktrace */, + backtrace::SegvBacktrace_t /* SegvBacktrace */, + bool /* Recoverable */) {} + +void uninstallSignalHandlers() {} +} // namespace segv_handler +} // namespace gwp_asan |