]> granicus.if.org Git - clang/commit
[ASan] Hoist blacklisting globals from init-order checking to Clang.
authorAlexey Samsonov <vonosmas@gmail.com>
Thu, 29 May 2014 01:43:53 +0000 (01:43 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Thu, 29 May 2014 01:43:53 +0000 (01:43 +0000)
commiteca0bcfaee4c16fe21552234b0c44dfb978974e5
tree9fbe96765d6f0103bae4bc6330a6655fa8844a67
parentc3684da1d42df59a6a4c0490f23079c87b1959eb
[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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209789 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/CodeGen/sanitize-init-order.cpp