diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2014-11-11 01:26:14 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-11-11 01:26:14 +0000 |
commit | a041610f11e9be018e125a5789e3ea258659dab4 (patch) | |
tree | 5f29be853db4279ef35e5a90bd451de7a2a36665 /clang/lib/CodeGen/BackendUtil.cpp | |
parent | 7f654a8e8f68b91efea0c71bcf327478cc2c168f (diff) | |
download | bcm5719-llvm-a041610f11e9be018e125a5789e3ea258659dab4.tar.gz bcm5719-llvm-a041610f11e9be018e125a5789e3ea258659dab4.zip |
[Sanitizer] Refactor sanitizer options in LangOptions.
Get rid of ugly SanitizerOptions class thrust into LangOptions:
* Make SanitizeAddressFieldPadding a regular language option,
and rely on default behavior to initialize/reset it.
* Make SanitizerBlacklistFile a regular member LangOptions.
* Introduce the helper class "SanitizerSet" to represent the
set of enabled sanitizers and make it a member of LangOptions.
It is exactly the entity we want to cache and modify in CodeGenFunction,
for instance. We'd also be able to reuse SanitizerSet in
CodeGenOptions for storing the set of recoverable sanitizers,
and in the Driver to represent the set of sanitizers
turned on/off by the commandline flags.
No functionality change.
llvm-svn: 221653
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r-- | clang/lib/CodeGen/BackendUtil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index 3d4e6bbe1d7..57675b1fe19 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -215,7 +215,7 @@ static void addDataFlowSanitizerPass(const PassManagerBuilder &Builder, const PassManagerBuilderWrapper &BuilderWrapper = static_cast<const PassManagerBuilderWrapper&>(Builder); const LangOptions &LangOpts = BuilderWrapper.getLangOpts(); - PM.add(createDataFlowSanitizerPass(LangOpts.Sanitize.BlacklistFile)); + PM.add(createDataFlowSanitizerPass(LangOpts.SanitizerBlacklistFile)); } static TargetLibraryInfo *createTLI(llvm::Triple &TargetTriple, |