Get rid of SanitizerOptions::Disabled global. NFC.
authorAlexey Samsonov <vonosmas@gmail.com>
Thu, 30 Oct 2014 19:33:44 +0000 (19:33 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Thu, 30 Oct 2014 19:33:44 +0000 (19:33 +0000)
commit035462c1cff42375079dd55fdb5a8a93cec6aacb
tree34918cb2ae5b7cc07871c957027fb2b15897891e
parentcf8f7a10b7d60c8999fc6035ece84692ae5bc21f
Get rid of SanitizerOptions::Disabled global. NFC.

SanitizerOptions is not even a POD now, so having global variable of
this type, is not nice. Instead, provide a regular constructor and clear()
method, and let each CodeGenFunction has its own copy of SanitizerOptions
it uses.

llvm-svn: 220920
clang/include/clang/Basic/LangOptions.h
clang/lib/Basic/LangOptions.cpp
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/CodeGen/CGCall.cpp
clang/lib/CodeGen/CGClass.cpp
clang/lib/CodeGen/CGExpr.cpp
clang/lib/CodeGen/CGExprScalar.cpp
clang/lib/CodeGen/CodeGenFunction.cpp
clang/lib/CodeGen/CodeGenFunction.h