diff options
author | Martin Storsjö <martin@martin.st> | 2021-06-23 14:52:36 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2021-06-25 00:22:01 +0300 |
commit | 42f74e824908f164f31e1d9e913dbd975d03fe4a (patch) | |
tree | b985cc146e544ff2521c0089f31498c71a7d40aa /llvm/lib/FileCheck/FileCheck.cpp | |
parent | 3eed57e7ef7da5eda765ccc19fd26fb8dfcd8d41 (diff) | |
download | llvm-42f74e824908f164f31e1d9e913dbd975d03fe4a.zip llvm-42f74e824908f164f31e1d9e913dbd975d03fe4a.tar.gz llvm-42f74e824908f164f31e1d9e913dbd975d03fe4a.tar.bz2 |
[llvm] Rename StringRef _lower() method calls to _insensitive()
This is a mechanical change. This actually also renames the
similarly named methods in the SmallString class, however these
methods don't seem to be used outside of the llvm subproject, so
this doesn't break building of the rest of the monorepo.
Diffstat (limited to 'llvm/lib/FileCheck/FileCheck.cpp')
-rw-r--r-- | llvm/lib/FileCheck/FileCheck.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/FileCheck/FileCheck.cpp b/llvm/lib/FileCheck/FileCheck.cpp index 950d236..04476d9 100644 --- a/llvm/lib/FileCheck/FileCheck.cpp +++ b/llvm/lib/FileCheck/FileCheck.cpp @@ -1229,7 +1229,7 @@ Pattern::MatchResult Pattern::match(StringRef Buffer, // If this is a fixed string pattern, just match it now. if (!FixedStr.empty()) { size_t Pos = - IgnoreCase ? Buffer.find_lower(FixedStr) : Buffer.find(FixedStr); + IgnoreCase ? Buffer.find_insensitive(FixedStr) : Buffer.find(FixedStr); if (Pos == StringRef::npos) return make_error<NotFoundError>(); return MatchResult(Pos, /*MatchLen=*/FixedStr.size(), Error::success()); |