[Mlir-commits] [mlir] c402694 - [mlir] Remove deprecated methods in OptionalParseResult

Kazu Hirata llvmlistbot at llvm.org
Sat Nov 19 12:54:12 PST 2022


Author: Kazu Hirata
Date: 2022-11-19T12:54:05-08:00
New Revision: c402694102f34052b6c63dcc5137986ee6edefa2

URL: https://github.com/llvm/llvm-project/commit/c402694102f34052b6c63dcc5137986ee6edefa2
DIFF: https://github.com/llvm/llvm-project/commit/c402694102f34052b6c63dcc5137986ee6edefa2.diff

LOG: [mlir] Remove deprecated methods in OptionalParseResult

Note that I deprecated these methods on August 12, 2022 in commit
commit 5c4674d67b06c5b4a845f26a614fc453a6bfb1f6.

Added: 
    

Modified: 
    mlir/include/mlir/IR/OpDefinition.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/IR/OpDefinition.h b/mlir/include/mlir/IR/OpDefinition.h
index 10bb720eb09fa..973cae3fd0141 100644
--- a/mlir/include/mlir/IR/OpDefinition.h
+++ b/mlir/include/mlir/IR/OpDefinition.h
@@ -45,15 +45,9 @@ class OptionalParseResult {
 
   /// Returns true if we contain a valid ParseResult value.
   bool has_value() const { return impl.has_value(); }
-  LLVM_DEPRECATED("Use has_value instead", "has_value") bool hasValue() const {
-    return impl.has_value();
-  }
 
   /// Access the internal ParseResult value.
   ParseResult value() const { return impl.value(); }
-  LLVM_DEPRECATED("Use value instead", "value") ParseResult getValue() const {
-    return impl.value();
-  }
   ParseResult operator*() const { return value(); }
 
 private:


        


More information about the Mlir-commits mailing list