summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-03-08 09:11:50 +0000
committerJohn McCall <rjmccall@apple.com>2011-03-08 09:11:50 +0000
commit91ca10fe642caef5bcbbf968cef99714e8112d2d (patch)
tree15763dfa84d1c87a48d04c7d0aad62a43eaa0114 /clang/lib/CodeGen/CodeGenFunction.h
parentdff1930bf70b448f6422f7ccd3eeb2206f150ab6 (diff)
downloadbcm5719-llvm-91ca10fe642caef5bcbbf968cef99714e8112d2d.tar.gz
bcm5719-llvm-91ca10fe642caef5bcbbf968cef99714e8112d2d.zip
Extract a function to emit an arbitrary expression as if it were the initializer
for a local variable. llvm-svn: 127227
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 648afc1734a..6864f15f8f5 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/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
OpenPOWER on IntegriCloud