summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_flags.h
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2014-01-28 09:28:57 +0000
committerAlexander Potapenko <glider@google.com>2014-01-28 09:28:57 +0000
commitcf4bef3161d8fc056336dd3fd45651943757678e (patch)
treea46e44622fd615eb15fb8055ea626e8fffbd05df /compiler-rt/lib/sanitizer_common/sanitizer_flags.h
parentb783628560b1be19c85e44462c9fe9a290c4448e (diff)
downloadbcm5719-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.h8
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() {
OpenPOWER on IntegriCloud