Timm =?utf-8?q?Bäder?= <tbae...@redhat.com>,
Timm =?utf-8?q?Bäder?= <tbae...@redhat.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/83...@github.com>


AaronBallman wrote:

> But that's not the problem I have in mind. My problem is the other way 
> around: when `ByteCodeExprGen` needs to generate code for statements. It has 
> no `visitStmt` function, because that's only implemented in the subclass.

Ah, so the choices boil down to using a single interface like this, or doing 
something like CRTP (or virtual dispatch)?

I like the separation of concerns between the stmt and expr emitters, but I'm 
not opposed to unifying them. How ugly does CRTP get though?

https://github.com/llvm/llvm-project/pull/83683
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to