diff options
Diffstat (limited to 'mlir/lib/IR/Function.cpp')
| -rw-r--r-- | mlir/lib/IR/Function.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mlir/lib/IR/Function.cpp b/mlir/lib/IR/Function.cpp index 94fee35fbb7..98bafa2af82 100644 --- a/mlir/lib/IR/Function.cpp +++ b/mlir/lib/IR/Function.cpp @@ -18,6 +18,7 @@ #include "mlir/IR/Function.h" #include "mlir/IR/Attributes.h" #include "mlir/IR/BlockAndValueMapping.h" +#include "mlir/IR/Diagnostics.h" #include "mlir/IR/MLIRContext.h" #include "mlir/IR/Module.h" #include "mlir/IR/Types.h" @@ -118,15 +119,15 @@ void Function::erase() { /// Emit a note about this operation, reporting up to any diagnostic /// handlers that may be listening. void Function::emitNote(const Twine &message) { - getContext()->emitDiagnostic(getLoc(), message, - MLIRContext::DiagnosticKind::Note); + getContext()->getDiagEngine().emit(getLoc(), message, + DiagnosticSeverity::Note); } /// Emit a warning about this operation, reporting up to any diagnostic /// handlers that may be listening. void Function::emitWarning(const Twine &message) { - getContext()->emitDiagnostic(getLoc(), message, - MLIRContext::DiagnosticKind::Warning); + getContext()->getDiagEngine().emit(getLoc(), message, + DiagnosticSeverity::Warning); } /// Emit an error about fatal conditions with this operation, reporting up to |

