diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-01-20 17:46:04 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-01-20 17:46:04 +0000 |
commit | 4fd0aa5803357d8c72eeac2cae15e12649ea08fe (patch) | |
tree | 8c1af2d6cf9dabb266227b5f5bb02cb7999c70b3 /lib/CodeGen/CodeGenFunction.h | |
parent | c96c0511501190b631664ca556c0bf85537095d3 (diff) |
Slight cleanup, and fix for va_arg on architectures where va_list is a
struct.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62585 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 3d0c2a2fdb..f469b970dc 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -314,6 +314,11 @@ public: RValue EmitAnyExpr(const Expr *E, llvm::Value *AggLoc = 0, bool isAggLocVolatile = false); + // EmitVAListRef - Emit a "reference" to a va_list; this is either the + // address or the value of the expression, depending on how va_list is + // defined. + llvm::Value *EmitVAListRef(const Expr *E); + /// EmitAnyExprToTemp - Similary to EmitAnyExpr(), however, the result /// will always be accessible even if no aggregate location is /// provided. |