Remove sanitizer blacklist from ASan/TSan/MSan function passes.
authorAlexey Samsonov <vonosmas@gmail.com>
Mon, 2 Jun 2014 18:08:27 +0000 (18:08 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Mon, 2 Jun 2014 18:08:27 +0000 (18:08 +0000)
commitf50e3953084cff910450ada6babf672b65ef082d
tree18ac77de8f876f08b9f10e26e4ededfbee9eddf9
parent11b190e97965554b35593053747637b8f3291d83
Remove sanitizer blacklist from ASan/TSan/MSan function passes.

Instrumentation passes now use attributes
address_safety/thread_safety/memory_safety which are added by Clang frontend.
Clang parses the blacklist file and adds the attributes accordingly.

Currently blacklist is still used in ASan module pass to disable instrumentation
for certain global variables. We should fix this as well by collecting the
set of globals we're going to instrument in Clang and passing it to ASan
in metadata (as we already do for dynamically-initialized globals and init-order
checking).

This change also removes -tsan-blacklist and -msan-blacklist LLVM commandline
flags in favor of -fsanitize-blacklist= Clang flag.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210038 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Instrumentation.h
lib/Transforms/Instrumentation/AddressSanitizer.cpp
lib/Transforms/Instrumentation/MemorySanitizer.cpp
lib/Transforms/Instrumentation/ThreadSanitizer.cpp