diff options
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index bc602f3720..7072be8f60 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -618,18 +618,21 @@ public: /// EmitCall - Generate a call of the given function, expecting the given /// result type, and using the given argument list which specifies both the /// LLVM arguments and the types they were derived from. + /// + /// \param TargetDecl - If given, the decl of the function in a + /// direct call; used to set attributes on the call (noreturn, + /// etc.). RValue EmitCall(const CGFunctionInfo &FnInfo, llvm::Value *Callee, - const CallArgList &Args); + const CallArgList &Args, + const Decl *TargetDecl = 0); RValue EmitCallExpr(const CallExpr *E); - RValue EmitCallExpr(Expr *FnExpr, CallExpr::const_arg_iterator ArgBeg, - CallExpr::const_arg_iterator ArgEnd); - RValue EmitCallExpr(llvm::Value *Callee, QualType FnType, CallExpr::const_arg_iterator ArgBeg, - CallExpr::const_arg_iterator ArgEnd); + CallExpr::const_arg_iterator ArgEnd, + const Decl *TargetDecl = 0); RValue EmitBuiltinExpr(const FunctionDecl *FD, unsigned BuiltinID, const CallExpr *E); |