OSDN Git Service

[GWP-ASan] Minor refactor of optional components.
authorMitch Phillips <31459023+hctim@users.noreply.github.com>
Thu, 14 Jan 2021 01:28:10 +0000 (17:28 -0800)
committerMitch Phillips <31459023+hctim@users.noreply.github.com>
Thu, 14 Jan 2021 19:14:11 +0000 (11:14 -0800)
commita8520f6970fd4d44ceae1ec5969563a0dbe30f54
treead38588da6abdf7f9b3acb06e1c2f4a2760d82b1
parent64e9e9aeee0155fc12d7d40d56e7611a63d8e47d
[GWP-ASan] Minor refactor of optional components.

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
13 files changed:
compiler-rt/lib/gwp_asan/optional/backtrace.h
compiler-rt/lib/gwp_asan/optional/backtrace_fuchsia.cpp
compiler-rt/lib/gwp_asan/optional/backtrace_linux_libc.cpp
compiler-rt/lib/gwp_asan/optional/backtrace_sanitizer_common.cpp
compiler-rt/lib/gwp_asan/optional/printf.h [new file with mode: 0644]
compiler-rt/lib/gwp_asan/optional/segv_handler.h
compiler-rt/lib/gwp_asan/optional/segv_handler_fuchsia.cpp
compiler-rt/lib/gwp_asan/optional/segv_handler_posix.cpp
compiler-rt/lib/gwp_asan/tests/CMakeLists.txt
compiler-rt/lib/gwp_asan/tests/harness.h
compiler-rt/lib/gwp_asan/tests/platform_specific/printf_sanitizer_common.cpp [moved from compiler-rt/lib/gwp_asan/tests/optional/printf_sanitizer_common.cpp with 52% similarity]
compiler-rt/lib/scudo/scudo_allocator.cpp
compiler-rt/lib/scudo/standalone/combined.h