================
@@ -55,6 +56,13 @@ class EmitCIRAction : public CIRGenAction {
   EmitCIRAction(mlir::MLIRContext *MLIRCtx = nullptr);
 };
 
+class EmitLLVMAction : public CIRGenAction {
+  virtual void anchor();
+
+public:
+  EmitLLVMAction(mlir::MLIRContext *MLIRCtx = nullptr);
----------------
andykaylor wrote:

This seems to be following a pattern established by CodeGenAction, and calling 
this without a context parameter is the normal case (in fact, it's the only 
case I see in the code). When the parameter is null, the CIRGenAction 
constructor allocates a new context. If a non-null pointer is passed, the 
constructor just uses it.

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

Reply via email to