[Sanitizer] Refactor SuppressionContext class.
authorAlexey Samsonov <vonosmas@gmail.com>
Fri, 20 Feb 2015 17:41:59 +0000 (17:41 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Fri, 20 Feb 2015 17:41:59 +0000 (17:41 +0000)
commitd1c318657b1c3b3ee54f4b30a6c6a52a6c4c3b93
treeb4cfbb968f87c098bdeb11bab0fe7eedf550db74
parent57d71ac7b387b443ad9a0643fa2565ba0926c78e
[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.

llvm-svn: 230026
18 files changed:
compiler-rt/lib/asan/asan_flags.inc
compiler-rt/lib/asan/asan_suppressions.cc
compiler-rt/lib/lsan/lsan_common.cc
compiler-rt/lib/lsan/lsan_flags.inc
compiler-rt/lib/sanitizer_common/sanitizer_flags.inc
compiler-rt/lib/sanitizer_common/sanitizer_suppressions.cc
compiler-rt/lib/sanitizer_common/sanitizer_suppressions.h
compiler-rt/lib/sanitizer_common/tests/sanitizer_suppressions_test.cc
compiler-rt/lib/tsan/rtl/tsan_flags.inc
compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
compiler-rt/lib/tsan/rtl/tsan_suppressions.cc
compiler-rt/lib/tsan/rtl/tsan_suppressions.h
compiler-rt/lib/ubsan/ubsan_diag.cc
compiler-rt/lib/ubsan/ubsan_diag.h
compiler-rt/lib/ubsan/ubsan_flags.inc
compiler-rt/lib/ubsan/ubsan_handlers_cxx.cc
compiler-rt/lib/ubsan/ubsan_init.cc
compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp