Path: blob/main/contrib/llvm-project/compiler-rt/lib/gwp_asan/optional/backtrace_fuchsia.cpp
35271 views
//===-- backtrace_fuchsia.cpp -----------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "gwp_asan/optional/backtrace.h"910#include <zircon/sanitizer.h>1112namespace gwp_asan {13namespace backtrace {1415// Fuchsia's C library provides safe, fast, best-effort backtraces itself.16options::Backtrace_t getBacktraceFunction() {17return __sanitizer_fast_backtrace;18}1920// These are only used in fatal signal handling, which is not used on Fuchsia.2122PrintBacktrace_t getPrintBacktraceFunction() { return nullptr; }23SegvBacktrace_t getSegvBacktraceFunction() { return nullptr; }2425} // namespace backtrace26} // namespace gwp_asan272829