xref: /openbsd-src/gnu/llvm/compiler-rt/lib/gwp_asan/optional/segv_handler_fuchsia.cpp (revision 810390e339a5425391477d5d41c78d7cab2424ac)
1 //===-- segv_handler_fuchsia.cpp --------------------------------*- 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 #include "gwp_asan/optional/segv_handler.h"
10 
11 // GWP-ASan on Fuchsia doesn't currently support signal handlers.
12 
13 namespace gwp_asan {
14 namespace segv_handler {
installSignalHandlers(gwp_asan::GuardedPoolAllocator *,Printf_t,backtrace::PrintBacktrace_t,backtrace::SegvBacktrace_t,bool)15 void installSignalHandlers(gwp_asan::GuardedPoolAllocator * /* GPA */,
16                            Printf_t /* Printf */,
17                            backtrace::PrintBacktrace_t /* PrintBacktrace */,
18                            backtrace::SegvBacktrace_t /* SegvBacktrace */,
19                            bool /* Recoverable */) {}
20 
uninstallSignalHandlers()21 void uninstallSignalHandlers() {}
22 } // namespace segv_handler
23 } // namespace gwp_asan
24