aboutsummaryrefslogtreecommitdiff
path: root/mlir/include/mlir/IR/Diagnostics.h
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/include/mlir/IR/Diagnostics.h')
-rw-r--r--mlir/include/mlir/IR/Diagnostics.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mlir/include/mlir/IR/Diagnostics.h b/mlir/include/mlir/IR/Diagnostics.h
index 4ed0423..7ff718a 100644
--- a/mlir/include/mlir/IR/Diagnostics.h
+++ b/mlir/include/mlir/IR/Diagnostics.h
@@ -639,6 +639,10 @@ public:
/// verified correctly, failure otherwise.
LogicalResult verify();
+ /// Register this handler with the given context. This is intended for use
+ /// with the splitAndProcessBuffer function.
+ void registerInContext(MLIRContext *ctx);
+
private:
/// Process a single diagnostic.
void process(Diagnostic &diag);