Use the individual -fsanitize=<...> arguments to control which of the UBSan
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 5 Nov 2012 22:21:05 +0000 (22:21 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 5 Nov 2012 22:21:05 +0000 (22:21 +0000)
commitb1b0ab41e79f4f11ab21e6e56ded7147241f8615
tree57f380118fb1a78b72d002a2ac906d3417f5ff8a
parentae79765676f5fda98cff4131be5abefc77c0317d
Use the individual -fsanitize=<...> arguments to control which of the UBSan
checks to enable. Remove frontend support for -fcatch-undefined-behavior,
-faddress-sanitizer and -fthread-sanitizer now that they don't do anything.

llvm-svn: 167413
16 files changed:
clang/include/clang/Basic/LangOptions.def
clang/include/clang/Driver/Options.td
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/CodeGen/CGExpr.cpp
clang/lib/CodeGen/CGExprScalar.cpp
clang/lib/CodeGen/CodeGenFunction.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/lib/Driver/Tools.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/CodeGen/address-safety-attr.cpp
clang/test/CodeGen/catch-undef-behavior.c
clang/test/CodeGen/integer-overflow.c
clang/test/CodeGen/tbaa-for-vptr.cpp
clang/test/CodeGenCXX/catch-undef-behavior.cpp
clang/test/CodeGenObjCXX/address-safety-attr.mm
clang/test/Lexer/has_feature_address_sanitizer.cpp