diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2016-01-16 00:31:22 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2016-01-16 00:31:22 +0000 |
| commit | dc13453128d5d1d60b3b3583337c91a095fa90e7 (patch) | |
| tree | 6e3ff34b49a569003f01c59bc4c0f46e7b314748 /clang/lib/CodeGen/CodeGenFunction.h | |
| parent | f0f5e870831fc4ac78c18f6fb786a9bea37e8aa9 (diff) | |
| download | bcm5719-llvm-dc13453128d5d1d60b3b3583337c91a095fa90e7.tar.gz bcm5719-llvm-dc13453128d5d1d60b3b3583337c91a095fa90e7.zip | |
Introduce -fsanitize-stats flag.
This is part of a new statistics gathering feature for the sanitizers.
See clang/docs/SanitizerStats.rst for further info and docs.
Differential Revision: http://reviews.llvm.org/D16175
llvm-svn: 257971
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index b3d50352532..3dc0f35b0db 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -36,6 +36,7 @@ #include "llvm/ADT/SmallVector.h" #include "llvm/IR/ValueHandle.h" #include "llvm/Support/Debug.h" +#include "llvm/Transforms/Utils/SanitizerStats.h" namespace llvm { class BasicBlock; @@ -3187,6 +3188,8 @@ public: Address EmitPointerWithAlignment(const Expr *Addr, AlignmentSource *Source = nullptr); + void EmitSanitizerStatReport(llvm::SanitizerStatKind SSK); + private: QualType getVarArgType(const Expr *Arg); |

