diff options
author | John McCall <rjmccall@apple.com> | 2011-03-08 09:11:50 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-03-08 09:11:50 +0000 |
commit | 60d3365b46eb826fba44483583c0051ac5c41fe3 (patch) | |
tree | 9a89bc2766349d5d235ef851b0f49786cdd66ec0 /lib/CodeGen/CodeGenFunction.h | |
parent | ff676cb48fe8bf7be2feaa251dc7c5fb15af4730 (diff) |
Extract a function to emit an arbitrary expression as if it were the initializer
for a local variable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127227 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 648afc1734..6864f15f8f 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -1361,12 +1361,18 @@ public: /// always be accessible even if no aggregate location is provided. RValue EmitAnyExprToTemp(const Expr *E); - /// EmitsAnyExprToMem - Emits the code necessary to evaluate an + /// EmitAnyExprToMem - Emits the code necessary to evaluate an /// arbitrary expression into the given memory location. void EmitAnyExprToMem(const Expr *E, llvm::Value *Location, bool IsLocationVolatile, bool IsInitializer); + /// EmitExprAsInit - Emits the code necessary to initialize a + /// location in memory with the given initializer. + void EmitExprAsInit(const Expr *init, const VarDecl *var, + llvm::Value *loc, CharUnits alignment, + bool capturedByInit); + /// EmitAggregateCopy - Emit an aggrate copy. /// /// \param isVolatile - True iff either the source or the destination is |