diff options
author | Anders Carlsson <andersca@mac.com> | 2009-04-08 20:47:54 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-04-08 20:47:54 +0000 |
commit | 0139bb96494b4c4ba0824617d5d2495dc7e44c76 (patch) | |
tree | 35806e3a6046685a95bee2bcd8e90372bbbc6df7 /lib/CodeGen/CodeGenFunction.h | |
parent | e9918d2443ad524e0f488e8f15d9bce4e7373cd1 (diff) |
Add code for emitting call arguments (not used yet).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68639 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 96db4a45c7..39ba5eb1e7 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -798,6 +798,17 @@ private: /// current cleanup scope. void AddBranchFixup(llvm::BranchInst *BI); + /// EmitCallArg - Emit a single call argument. + RValue EmitCallArg(const Expr *E, QualType ArgType); + + /// EmitCallArgs - Emit call arguments for a function. + /// FIXME: It should be possible to generalize this and pass a generic + /// "argument type container" type instead of the FunctionProtoType. This way + /// it can work on Objective-C methods as well. + void EmitCallArgs(CallArgList& args, const FunctionProtoType *FPT, + CallExpr::const_arg_iterator ArgBeg, + CallExpr::const_arg_iterator ArgEnd); + }; } // end namespace CodeGen } // end namespace clang |