diff options
| author | Alexander Potapenko <glider@google.com> | 2014-01-28 09:28:57 +0000 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2014-01-28 09:28:57 +0000 |
| commit | cf4bef3161d8fc056336dd3fd45651943757678e (patch) | |
| tree | a46e44622fd615eb15fb8055ea626e8fffbd05df /compiler-rt/lib/sanitizer_common/sanitizer_flags.h | |
| parent | b783628560b1be19c85e44462c9fe9a290c4448e (diff) | |
| download | bcm5719-llvm-cf4bef3161d8fc056336dd3fd45651943757678e.tar.gz bcm5719-llvm-cf4bef3161d8fc056336dd3fd45651943757678e.zip | |
[ASan] Move the signal handling-related flags to sanitizer_common.
This change is a part of refactoring intended to have common signal handling behavior in all tools.
llvm-svn: 200295
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_flags.h')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_flags.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_flags.h b/compiler-rt/lib/sanitizer_common/sanitizer_flags.h index 1f5b1461b67..1df9a004870 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_flags.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_flags.h @@ -58,6 +58,14 @@ struct CommonFlags { bool print_summary; // Check printf arguments. bool check_printf; + // If set, registers the tool's custom SEGV handler (both SIGBUS and SIGSEGV + // on OSX). + bool handle_segv; + // If set, allows user to register a SEGV handler even if the tool registers + // one. + bool allow_user_segv_handler; + // If set, uses alternate stack for signal handling. + bool use_sigaltstack; }; inline CommonFlags *common_flags() { |

