[patch] Handle constructors and destructors a bit more uniformly in CodeGen

David Blaikie dblaikie at gmail.com
Mon Sep 1 22:35:41 PDT 2014


On Mon, Sep 1, 2014 at 10:29 PM, Justin Bogner <mail at justinbogner.com>
wrote:

> Rafael EspĂ­ndola <rafael.espindola at gmail.com> writes:
> > It looks like there are code paths that are duplicated for
> > constructors and destructors just because
> > we have both CXXCtorType and CXXDtorsTypes.
> >
> > This patch introduces a CDtorType enum that lets us reduce the
> > duplication a bit.
>
> Looks like a pretty nice cleanup to me, but I find the CDtor naming a
> bit subtle. Not sure I have a much better idea, but a couple that come
> to mind are "COrDtor" or "CtorDtor". Alernatively we could go for
> something like CXXSpecial or CXXSpecMem, but these imply assignment as
> well, which is unfortunate.
>
> (feel free to veto me, I'm not convinced any of the names I've come up
> with are actually *better*)
>

I had the same thought & think CtorDtorTypes is pretty reasonable.


>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140901/629cbe8d/attachment.html>


More information about the cfe-commits mailing list