[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)
commitc054d9813c9c7f8f2c95d78bc171bf761d2e73fc
tree9b21e42e706ae3c0d79f59470e150c04f1a43206
parentf375d806355a9d6a17f3fd53673a6257057bc225
[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: 209789
clang/lib/CodeGen/CodeGenModule.cpp
clang/test/CodeGen/sanitize-init-order.cpp