Remove the Identifier::is() method, it is now equivalent to operator==. NFC.
authorChris Lattner <clattner@nondot.org>
Mon, 13 Apr 2020 18:51:59 +0000 (11:51 -0700)
committerChris Lattner <clattner@nondot.org>
Mon, 13 Apr 2020 19:37:37 +0000 (12:37 -0700)
Summary: Depends on D78042.

Reviewers: rriddle!

Subscribers: mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, liufengdb, Joonsoo, grosul1, frgossen, llvm-commits

Tags: #llvm

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

mlir/include/mlir/IR/Identifier.h

index 98a792a..ca1946b 100644 (file)
@@ -51,9 +51,6 @@ public:
   /// Return the number of bytes in this string.
   unsigned size() const { return entry->getKeyLength(); }
 
-  /// Return true if this identifier is the specified string.
-  bool is(StringRef string) const { return strref() == string; }
-
   const char *begin() const { return data(); }
   const char *end() const { return entry->getKeyData() + size(); }