Remove top-level Clang -fsanitize= flags for optional ASan features.
authorAlexey Samsonov <vonosmas@gmail.com>
Fri, 13 Jun 2014 17:53:44 +0000 (17:53 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Fri, 13 Jun 2014 17:53:44 +0000 (17:53 +0000)
commit6140939365cb1d23a7f8ab99b6b30650d41dac42
treee4d14887b8899f14d33f3a7ddd251a65c01c2fb1
parenteee7a7a8362afddab3fd9bf10b7023da7e7c42e5
Remove top-level Clang -fsanitize= flags for optional ASan features.

Init-order and use-after-return modes can currently be enabled
by runtime flags. use-after-scope mode is not really working at the
moment.

The only problem I see is that users won't be able to disable extra
instrumentation for init-order and use-after-scope by a top-level Clang flag.
But this instrumentation was implicitly enabled for quite a while and
we didn't hear from users hurt by it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210924 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Instrumentation.h
lib/Transforms/Instrumentation/AddressSanitizer.cpp
test/Instrumentation/AddressSanitizer/debug_info.ll
test/Instrumentation/AddressSanitizer/lifetime.ll
test/Instrumentation/AddressSanitizer/stack-poisoning.ll