aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-05-20 00:24:07 +0000
committerAnders Carlsson <andersca@mac.com>2009-05-20 00:24:07 +0000
commit4029ca7ae9d3ffd7738fe2ed8782bebc30f36fd6 (patch)
tree2eadf6254d694ec3ff514796cb5eb9d4920f959e /lib/CodeGen/CodeGenFunction.h
parent32110dfd1c612e97996fa87c3ca6180461b9fb1f (diff)
Add EmitReferenceBindingToExpr. Have EmitCallArg use it for now. Doesn't support anything but at least we don't crash ;)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72147 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r--lib/CodeGen/CodeGenFunction.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h
index 081e44f915..130bc369e3 100644
--- a/lib/CodeGen/CodeGenFunction.h
+++ b/lib/CodeGen/CodeGenFunction.h
@@ -708,6 +708,10 @@ public:
void EmitObjCSuperPropertySet(const Expr *E, const Selector &S, RValue Src);
+ /// EmitReferenceBindingToExpr - Emits a reference binding to the passed in
+ /// expression. Will emit a temporary variable if E is not an LValue.
+ RValue EmitReferenceBindingToExpr(const Expr* E, QualType DestType);
+
//===--------------------------------------------------------------------===//
// Expression Emission
//===--------------------------------------------------------------------===//