summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_flags.cc
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2014-07-09 23:59:40 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2014-07-09 23:59:40 +0000
commitf723794da81d102ecbe6505898ea4d001b1f7e30 (patch)
tree6665a2548e835733af08040a30975787bc84c76f /compiler-rt/lib/sanitizer_common/sanitizer_flags.cc
parent9e2d329818b71050ad397cc3393517646e9311cc (diff)
downloadbcm5719-llvm-f723794da81d102ecbe6505898ea4d001b1f7e30.tar.gz
bcm5719-llvm-f723794da81d102ecbe6505898ea4d001b1f7e30.zip
[Sanitizer] Remove SANITIZER_NEEDS_SEGV from shared sanitizer_common headers.
Otherwise, it can be accidentally redefined when we build specific sanitizer runtime. This definition should be provided only once - when we build sanitizer_common library. llvm-svn: 212663
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_flags.cc')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_flags.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_flags.cc b/compiler-rt/lib/sanitizer_common/sanitizer_flags.cc
index 91c0f237048..0a70e1681e7 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_flags.cc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_flags.cc
@@ -29,6 +29,11 @@ struct FlagDescription {
IntrusiveList<FlagDescription> flag_descriptions;
+// If set, the tool will install its own SEGV signal handler by default.
+#ifndef SANITIZER_NEEDS_SEGV
+# define SANITIZER_NEEDS_SEGV 1
+#endif
+
void SetCommonFlagsDefaults(CommonFlags *f) {
f->symbolize = true;
f->external_symbolizer_path = 0;
OpenPOWER on IntegriCloud