rjmccall added a comment.
This should at least be named `emitScalarConstant`.
https://reviews.llvm.org/D53725
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
vsapsai updated this revision to Diff 171751.
vsapsai added a comment.
- Rename `EmitConstant` to `EmitScalarConstant`.
https://reviews.llvm.org/D53725
Files:
clang/lib/CodeGen/CGExpr.cpp
clang/lib/CodeGen/CGExprScalar.cpp
clang/lib/CodeGen/CodeGenFunction.h
Index: clang/lib/CodeGen/Cod
vsapsai added a comment.
In https://reviews.llvm.org/D53725#1278067, @rjmccall wrote:
> This should at least be named `emitScalarConstant`.
Agree. I've just capitalized 'e' as it looks like the majority of `Emit...`
methods are capitalized that way.
https://reviews.llvm.org/D53725
___
rjmccall accepted this revision.
rjmccall added a comment.
This revision is now accepted and ready to land.
Well, that's the old style, but we've been slowly moving to the camelCase style
instead. Very, very slowly. I won't hold up your patch over it.
https://reviews.llvm.org/D53725
__
vsapsai updated this revision to Diff 172046.
vsapsai added a comment.
- Switch to camelCase.
https://reviews.llvm.org/D53725
Files:
clang/lib/CodeGen/CGExpr.cpp
clang/lib/CodeGen/CGExprScalar.cpp
clang/lib/CodeGen/CodeGenFunction.h
Index: clang/lib/CodeGen/CodeGenFunction.h
===
rjmccall accepted this revision.
rjmccall added a comment.
Thanks. Still LGTM. :)
https://reviews.llvm.org/D53725
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
vsapsai added a comment.
Can you please check https://reviews.llvm.org/D53674 ? It builds on top of this
change and I plan to commit them together.
https://reviews.llvm.org/D53725
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists
This revision was automatically updated to reflect the committed changes.
Closed by commit rL345897: [CodeGen] Move `emitConstant` from ScalarExprEmitter
to CodeGenFunction. NFC. (authored by vsapsai, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://revi
vsapsai created this revision.
vsapsai added reviewers: rjmccall, ahatanak.
Herald added a subscriber: dexonsmith.
The goal is to use `emitConstant` in more places. Didn't move
`ComplexExprEmitter::emitConstant` because it returns a different type.
https://reviews.llvm.org/D53725
Files:
clang