Remove deprecated `parseSourceFile/String()` overloads.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D123490
This commit is contained in:
Christian Sigg 2022-04-11 11:29:32 +02:00
parent 4f185fccc7
commit a0e1c13cae
1 changed files with 0 additions and 20 deletions

View 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