summaryrefslogtreecommitdiff
path: root/mlir/examples/toy/Ch5
diff options
context:
space:
mode:
authorChristian Sigg <csigg@google.com>2022-03-06 20:55:59 +0100
committerChristian Sigg <csigg@google.com>2022-03-07 06:49:38 +0100
commit0dc66b76fe4c33843755ade391b85ffda0742aeb (patch)
tree4c99f9b6f94dba7f96463bf1a74ea04d338303be /mlir/examples/toy/Ch5
parent5af11ec34b7bae731c9cc0d40597f52345e33a94 (diff)
downloadllvm-0dc66b76fe4c33843755ade391b85ffda0742aeb.tar.gz
[MLIR] Change call sites from deprecated `parseSourceFile()` to `parseSourceFile<ModuleOp>()`.
Mark `parseSourceFile()` deprecated. The functions will be removed two weeks after landing this change. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D121075
Diffstat (limited to 'mlir/examples/toy/Ch5')
-rw-r--r--mlir/examples/toy/Ch5/toyc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/examples/toy/Ch5/toyc.cpp b/mlir/examples/toy/Ch5/toyc.cpp
index 76fc00fbf463..dffc657c1446 100644
--- a/mlir/examples/toy/Ch5/toyc.cpp
+++ b/mlir/examples/toy/Ch5/toyc.cpp
@@ -98,7 +98,7 @@ int loadMLIR(llvm::SourceMgr &sourceMgr, mlir::MLIRContext &context,
// Parse the input mlir.
sourceMgr.AddNewSourceBuffer(std::move(*fileOrErr), llvm::SMLoc());
- module = mlir::parseSourceFile(sourceMgr, &context);
+ module = mlir::parseSourceFile<mlir::ModuleOp>(sourceMgr, &context);
if (!module) {
llvm::errs() << "Error can't load file " << inputFilename << "\n";
return 3;