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

Chris Lattner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 13:01:07 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG359541ed4fd4: Remove the Identifier::is() method, it is now equivalent to operator==.  NFC. (authored by lattner).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78043/new/

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.257074.patch
Type: text/x-patch
Size: 563 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200413/0c1a6026/attachment.bin>


More information about the llvm-commits mailing list