]> granicus.if.org Git - clang/commit
[CodeGen] Move `emitConstant` from ScalarExprEmitter to CodeGenFunction. NFC.
authorVolodymyr Sapsai <vsapsai@apple.com>
Thu, 1 Nov 2018 21:57:05 +0000 (21:57 +0000)
committerVolodymyr Sapsai <vsapsai@apple.com>
Thu, 1 Nov 2018 21:57:05 +0000 (21:57 +0000)
commit2597e7eac63e1aec05fd6a8cc58bdad3e125bd86
treeca28160e2b53e1f79a4dd8380582d15a8fe9af2a
parentc25cc7e7b790c9545e412b4aff9100f40d3b97b6
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345897 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGExprScalar.cpp
lib/CodeGen/CodeGenFunction.h