diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2014-07-07 23:59:57 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-07-07 23:59:57 +0000 |
commit | ac4afe49e7b7d17a5b7f5e9872baccd8fb5c8a97 (patch) | |
tree | 12bd0e372ba4fd2026f8f1b27ad851e6365ffad9 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 28638911cd79f9808edc5f297b16403b8ff370bc (diff) | |
download | bcm5719-llvm-ac4afe49e7b7d17a5b7f5e9872baccd8fb5c8a97.tar.gz bcm5719-llvm-ac4afe49e7b7d17a5b7f5e9872baccd8fb5c8a97.zip |
[Sanitizer] Remove brittle cache variable and slightly simplify blacklisting code.
Now CodeGenFunction is responsible for looking at sanitizer blacklist
(in CodeGenFunction::StartFunction) and turning off instrumentation,
if necessary.
No functionality change.
llvm-svn: 212501
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 2d6d99a8419..6aa3f9a0691 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -231,10 +231,6 @@ public: /// potentially higher performance penalties. unsigned char BoundsChecking; - /// \brief Whether any type-checking sanitizers are enabled. If \c false, - /// calls to EmitTypeCheck can be skipped. - bool SanitizePerformTypeCheck; - /// \brief Sanitizer options to use for this function. const SanitizerOptions *SanOpts; @@ -1693,6 +1689,10 @@ public: TCK_DowncastReference }; + /// \brief Whether any type-checking sanitizers are enabled. If \c false, + /// calls to EmitTypeCheck can be skipped. + bool sanitizePerformTypeCheck() const; + /// \brief Emit a check that \p V is the address of storage of the /// appropriate size and alignment for an object of type \p Type. void EmitTypeCheck(TypeCheckKind TCK, SourceLocation Loc, llvm::Value *V, |