[PATCH] D78043: Remove the Identifier::is() method. NFC.

Chris Lattner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 11:53:08 PDT 2020


lattner created this revision.
Herald added subscribers: llvm-commits, frgossen, grosul1, Joonsoo, liufengdb, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini.
Herald added a reviewer: rriddle.
Herald added a project: LLVM.

Depends on D78042 <https://reviews.llvm.org/D78042>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78043

Files:
  mlir/include/mlir/IR/Identifier.h


Index: mlir/include/mlir/IR/Identifier.h
===================================================================
--- mlir/include/mlir/IR/Identifier.h
+++ mlir/include/mlir/IR/Identifier.h
@@ -51,9 +51,6 @@
   /// 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(); }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78043.257045.patch
Type: text/x-patch
Size: 563 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200413/56724590/attachment.bin>


More information about the llvm-commits mailing list