Introduce a SanitizerKind enum to LangOptions.
authorAlexey Samsonov <vonosmas@gmail.com>
Fri, 7 Nov 2014 22:29:38 +0000 (22:29 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Fri, 7 Nov 2014 22:29:38 +0000 (22:29 +0000)
commitedf99a92c00193fb72f3e94f4440b9f86789cca4
tree38223e591da34506e9f12ad46d6fcf7fc985cd61
parentea0a4dfd2764d4b57366e104477467723c1acb4c
Introduce a SanitizerKind enum to LangOptions.

Use the bitmask to store the set of enabled sanitizers instead of a
bitfield. On the negative side, it makes syntax for querying the
set of enabled sanitizers a bit more clunky. On the positive side, we
will be able to use SanitizerKind to eventually implement the
new semantics for -fsanitize-recover= flag, that would allow us
to make some sanitizers recoverable, and some non-recoverable.

No functionality change.

llvm-svn: 221558
19 files changed:
clang/include/clang/Basic/LangOptions.h
clang/lib/AST/Decl.cpp
clang/lib/Basic/LangOptions.cpp
clang/lib/Basic/Targets.cpp
clang/lib/CodeGen/BackendUtil.cpp
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/CodeGen/CGCall.cpp
clang/lib/CodeGen/CGClass.cpp
clang/lib/CodeGen/CGDeclCXX.cpp
clang/lib/CodeGen/CGExpr.cpp
clang/lib/CodeGen/CGExprScalar.cpp
clang/lib/CodeGen/CodeGenFunction.cpp
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/CodeGen/ItaniumCXXABI.cpp
clang/lib/CodeGen/SanitizerMetadata.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Lex/PPMacroExpansion.cpp
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTWriter.cpp