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)
commit6d8bab82df49b8b4b3b5598fde1c26489a407aa4
tree39ca19c89e72cf84198211a6586235002105c896
parent1cf07ea6bbb214077aca62a1fb44f20e070cdf45
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.

llvm-svn: 210038
llvm/include/llvm/Transforms/Instrumentation.h
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp