aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-08-26 06:48:56 +0000
committerChris Lattner <sabre@nondot.org>2007-08-26 06:48:56 +0000
commit3707b255f8993fb362904c9cff87b0e9bc6ca317 (patch)
treeb35d25108ffc5c7d39f713cb608c5db275e06a3c /CodeGen/CodeGenFunction.h
parentce7f4cc77f00a4e591596790cf9588e4daf71534 (diff)
refactor scalar conversions out into CGExprScalar.cpp
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41433 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenFunction.h')
-rw-r--r--CodeGen/CodeGenFunction.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/CodeGen/CodeGenFunction.h b/CodeGen/CodeGenFunction.h
index 85b6c6318f..71573df679 100644
--- a/CodeGen/CodeGenFunction.h
+++ b/CodeGen/CodeGenFunction.h
@@ -361,6 +361,12 @@ public:
/// LLVM scalar type, returning the result.
llvm::Value *EmitScalarExpr(const Expr *E);
+ /// EmitScalarConversion - Emit a conversion from the specified type to the
+ /// specified destination type, both of which are LLVM scalar types.
+ llvm::Value *EmitScalarConversion(llvm::Value *Src, QualType SrcTy,
+ QualType DstTy);
+
+
/// EmitAggExpr - Emit the computation of the specified expression of
/// aggregate type. The result is computed into DestPtr. Note that if
/// DestPtr is null, the value of the aggregate expression is not needed.