[llvm] [ADT] Deprecate StringRef::equals (PR #92351)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Thu May 16 00:38:25 PDT 2024
================
@@ -161,7 +161,9 @@ namespace llvm {
/// equals - Check for string equality, this is more efficient than
/// compare() when the relative ordering of inequal strings isn't needed.
- [[nodiscard]] bool equals(StringRef RHS) const {
+ [[nodiscard]] LLVM_DEPRECATED(
+ "Use operator==(StringRef, StringRef) instead",
----------------
kazutakahirata wrote:
Thank you for the review! Fixed in the latest iteration.
https://github.com/llvm/llvm-project/pull/92351
More information about the llvm-commits
mailing list