diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2015-02-20 17:41:59 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2015-02-20 17:41:59 +0000 |
commit | ae387957e63894c2618b9e404949b0a6b5a26843 (patch) | |
tree | 57e8668d2a3eede3629b0bd3a6199055b548621e /lib/ubsan/ubsan_flags.inc | |
parent | b08c3120c941795bc932128f40903f3b097e297a (diff) |
[Sanitizer] Refactor SuppressionContext class.
SuppressionContext is no longer a singleton, shared by all sanitizers,
but a regular class. Each of ASan, LSan, UBSan and TSan now have their
own SuppressionContext, which only parses suppressions specific to
that sanitizer.
"suppressions" flag is moved away from common flags into tool-specific
flags, so the user now may pass
ASAN_OPTIONS=suppressions=asan_supp.txt LSAN_OPIONS=suppressions=lsan_supp.txt
in a single invocation.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@230026 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ubsan/ubsan_flags.inc')
-rw-r--r-- | lib/ubsan/ubsan_flags.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ubsan/ubsan_flags.inc b/lib/ubsan/ubsan_flags.inc index 3260e8e13..9ca31d13a 100644 --- a/lib/ubsan/ubsan_flags.inc +++ b/lib/ubsan/ubsan_flags.inc @@ -21,4 +21,5 @@ UBSAN_FLAG(bool, halt_on_error, false, "Crash the program after printing the first error report") UBSAN_FLAG(bool, print_stacktrace, false, "Include full stacktrace into an error report") +UBSAN_FLAG(const char *, suppressions, "", "Suppressions file name.") |