[ASan] Hoist blacklisting globals from init-order checking to Clang.
authorAlexey Samsonov <vonosmas@gmail.com>
Thu, 29 May 2014 01:44:13 +0000 (01:44 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Thu, 29 May 2014 01:44:13 +0000 (01:44 +0000)
commitdea76ee889248deb7b0754d4ac3b9e6575e00b6c
tree75429614877398b1a01218412b70542620b06f53
parentc054d9813c9c7f8f2c95d78bc171bf761d2e73fc
[ASan] Hoist blacklisting globals from init-order checking to Clang.

Clang knows about the sanitizer blacklist and it makes no sense to
add global to the list of llvm.asan.dynamically_initialized_globals if it
will be blacklisted in the instrumentation pass anyway. Instead, we should
do as much blacklisting as possible (if not all) in the frontend.

llvm-svn: 209790
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp