diff options
author | Christian Sigg <csigg@google.com> | 2022-03-06 20:55:59 +0100 |
---|---|---|
committer | Christian Sigg <csigg@google.com> | 2022-03-07 06:49:38 +0100 |
commit | 0dc66b76fe4c33843755ade391b85ffda0742aeb (patch) | |
tree | 4c99f9b6f94dba7f96463bf1a74ea04d338303be /mlir/examples/toy/Ch5 | |
parent | 5af11ec34b7bae731c9cc0d40597f52345e33a94 (diff) | |
download | llvm-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.cpp | 2 |
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; |