diff options
author | Volodymyr Sapsai <vsapsai@apple.com> | 2018-11-01 21:57:05 +0000 |
---|---|---|
committer | Volodymyr Sapsai <vsapsai@apple.com> | 2018-11-01 21:57:05 +0000 |
commit | ef1899b01d32845da4602a08bc0a835c1c513cfa (patch) | |
tree | 979176b46021ddd27a3d86a4fa60ee11d1e702fc /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 56c0ee02aff6f43f935e26a9635776e4f5c18e2a (diff) | |
download | bcm5719-llvm-ef1899b01d32845da4602a08bc0a835c1c513cfa.tar.gz bcm5719-llvm-ef1899b01d32845da4602a08bc0a835c1c513cfa.zip |
[CodeGen] Move `emitConstant` from ScalarExprEmitter to CodeGenFunction. NFC.
The goal is to use `emitConstant` in more places. Didn't move
`ComplexExprEmitter::emitConstant` because it returns a different type.
Reviewers: rjmccall, ahatanak
Reviewed By: rjmccall
Subscribers: dexonsmith, erik.pilkington, cfe-commits
Differential Revision: https://reviews.llvm.org/D53725
llvm-svn: 345897
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index d5de0a0473e..f6b76294ae0 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -3524,6 +3524,7 @@ public: ConstantEmission tryEmitAsConstant(DeclRefExpr *refExpr); ConstantEmission tryEmitAsConstant(const MemberExpr *ME); + llvm::Value *emitScalarConstant(const ConstantEmission &Constant, Expr *E); RValue EmitPseudoObjectRValue(const PseudoObjectExpr *e, AggValueSlot slot = AggValueSlot::ignored()); |