llvm-project
4e6f6fda - [IR] Use StringRef::operator== instead of StringRef::equals (NFC) (#90550)

Commit
1 year ago
[IR] Use StringRef::operator== instead of StringRef::equals (NFC) (#90550) I'm planning to remove StringRef::equals in favor of StringRef::operator==. - StringRef::operator== outnumbers StringRef::equals by a factor of 22 under llvm/ in terms of their usage. - The elimination of StringRef::equals brings StringRef closer to std::string_view, which has operator== but not equals. - S == "foo" is more readable than S.equals("foo"), especially for !Long.Expression.equals("str") vs Long.Expression != "str".
Parents
Loading