]> granicus.if.org Git - clang/commit
Remove sanitizer blacklist from ASan/TSan/MSan function passes.
authorAlexey Samsonov <vonosmas@gmail.com>
Mon, 2 Jun 2014 18:08:08 +0000 (18:08 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Mon, 2 Jun 2014 18:08:08 +0000 (18:08 +0000)
commite09e4f33ca135e62c7c98b9c4359b45ec1b18559
treebb92aff0ad21ee1de23e17bcafe08517ba7515d9
parent2fd209633568ce58700938a60f4582c45e83a90e
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/cfe/trunk@210037 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BackendUtil.cpp