Remove deprecated `parseSourceFile/String()` overloads.
authorChristian Sigg <csigg@google.com>
Mon, 11 Apr 2022 09:29:32 +0000 (11:29 +0200)
committerChristian Sigg <csigg@google.com>
Mon, 11 Apr 2022 12:11:08 +0000 (14:11 +0200)
Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D123490

mlir/include/mlir/Parser/Parser.h

index 5bbac02..ae59ea2 100644 (file)
@@ -204,26 +204,6 @@ inline OwningOpRef<ContainerOpT> parseSourceString(llvm::StringRef sourceStr,
       &block, context, sourceFileLoc);
 }
 
-/// TODO: These methods are deprecated in favor of the above template versions.
-/// They should be removed when usages have been updated.
-[[deprecated("use parseSourceFile<ModuleOp>")]] inline OwningOpRef<ModuleOp>
-parseSourceFile(const llvm::SourceMgr &sourceMgr, MLIRContext *context) {
-  return parseSourceFile<ModuleOp>(sourceMgr, context);
-}
-[[deprecated("use parseSourceFile<ModuleOp>")]] inline OwningOpRef<ModuleOp>
-parseSourceFile(llvm::StringRef filename, MLIRContext *context) {
-  return parseSourceFile<ModuleOp>(filename, context);
-}
-[[deprecated("use parseSourceFile<ModuleOp>")]] inline OwningOpRef<ModuleOp>
-parseSourceFile(llvm::StringRef filename, llvm::SourceMgr &sourceMgr,
-                MLIRContext *context) {
-  return parseSourceFile<ModuleOp>(filename, sourceMgr, context);
-}
-[[deprecated("use parseSourceString<ModuleOp>")]] inline OwningOpRef<ModuleOp>
-parseSourceString(llvm::StringRef moduleStr, MLIRContext *context) {
-  return parseSourceString<ModuleOp>(moduleStr, context);
-}
-
 /// This parses a single MLIR attribute to an MLIR context if it was valid.  If
 /// not, an error message is emitted through a new SourceMgrDiagnosticHandler
 /// constructed from a new SourceMgr with a single a MemoryBuffer wrapping