In preparation for the inbuilt options parser, this is a minor refactor of optional components including: - Putting certain optional elements in the right header files, according to their function and their dependencies. - Cleaning up some old and mostly-dead code. - Moving some functions into anonymous namespaces to prevent symbol export. Reviewed By: cryptoad, eugenis Differential Revision: https://reviews.llvm.org/D94117
22 lines
760 B
C++
22 lines
760 B
C++
//===-- backtrace_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/backtrace.h"
|
|
|
|
// GWP-ASan on Fuchsia doesn't currently support backtraces.
|
|
|
|
namespace gwp_asan {
|
|
namespace backtrace {
|
|
|
|
options::Backtrace_t getBacktraceFunction() { return nullptr; }
|
|
PrintBacktrace_t getPrintBacktraceFunction() { return nullptr; }
|
|
SegvBacktrace_t getSegvBacktraceFunction() { return nullptr; }
|
|
|
|
} // namespace backtrace
|
|
} // namespace gwp_asan
|