summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-11-01 22:15:34 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-11-01 22:15:34 +0000
commitde67068fc1726f7c9c4ae89d3f3f47b2da512d48 (patch)
treead9f55a3467d83cdf41e3ef84d2612d4f79aa73b /clang/lib/CodeGen/CodeGenFunction.h
parente29c441a89143912091c159d4baa4443e589d607 (diff)
downloadbcm5719-llvm-de67068fc1726f7c9c4ae89d3f3f47b2da512d48.tar.gz
bcm5719-llvm-de67068fc1726f7c9c4ae89d3f3f47b2da512d48.zip
Split emission of -ftrapv checks and -fcatch-undefined-behavior checks into
separate functions, since they share essentially no code. llvm-svn: 167259
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index c3f6c8e2455..1e9fd006d08 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -2574,13 +2574,18 @@ public:
/// passing to a runtime sanitizer handler.
llvm::Constant *EmitCheckSourceLocation(SourceLocation Loc);
- /// \brief Create a basic block that will call the trap intrinsic, and emit a
- /// conditional branch to it.
+ /// \brief Create a basic block that will call a handler function in a
+ /// sanitizer runtime with the provided arguments, and create a conditional
+ /// branch to it.
void EmitCheck(llvm::Value *Checked, StringRef CheckName,
llvm::ArrayRef<llvm::Constant *> StaticArgs,
llvm::ArrayRef<llvm::Value *> DynamicArgs,
bool Recoverable = false);
+ /// \brief Create a basic block that will call the trap intrinsic, and emit a
+ /// conditional branch to it, for the -ftrapv checks.
+ void EmitTrapvCheck(llvm::Value *Checked);
+
/// EmitCallArg - Emit a single call argument.
void EmitCallArg(CallArgList &args, const Expr *E, QualType ArgType);
OpenPOWER on IntegriCloud