From: Chris Lattner Date: Mon, 13 Apr 2020 18:51:59 +0000 (-0700) Subject: Remove the Identifier::is() method, it is now equivalent to operator==. NFC. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=359541ed4fd4a3affeb8fe109f3771a40e069bc1;p=platform%2Fupstream%2Fllvm.git Remove the Identifier::is() method, it is now equivalent to operator==. NFC. 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 --- diff --git a/mlir/include/mlir/IR/Identifier.h b/mlir/include/mlir/IR/Identifier.h index 98a792a..ca1946b 100644 --- a/mlir/include/mlir/IR/Identifier.h +++ b/mlir/include/mlir/IR/Identifier.h @@ -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(); }