================ @@ -354,6 +355,33 @@ void CIRGenFunction::enterCXXTryStmt(const CXXTryStmt &s, cir::TryOp tryOp, } } +/// Emit the structure of the dispatch block for the given catch scope. +/// It is an invariant that the dispatch block already exists. +static void emitCatchDispatchBlock(CIRGenFunction &cgf, ---------------- andykaylor wrote:
I'm concerned that we're following the names and structure of the classic codegen handling for no good reason. As the comment in `getEHDispatchBlock` says, in CIR there are no dispatch blocks. It feels like we're creating a lot of clutter by copying the skeleton of the classic codegen handling where we don't need it. As far as I can tell, you can get rid of this function completely. https://github.com/llvm/llvm-project/pull/165158 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
