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/Support/VirtualFileSystem.cpp | |
| parent | 3eed57e7ef7da5eda765ccc19fd26fb8dfcd8d41 (diff) | |
[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/Support/VirtualFileSystem.cpp')
| -rw-r--r-- | llvm/lib/Support/VirtualFileSystem.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Support/VirtualFileSystem.cpp b/llvm/lib/Support/VirtualFileSystem.cpp index dd820c15ca68..3f6c434f7720 100644 --- a/llvm/lib/Support/VirtualFileSystem.cpp +++ b/llvm/lib/Support/VirtualFileSystem.cpp @@ -1318,12 +1318,13 @@ class llvm::vfs::RedirectingFileSystemParser { if (!parseScalarString(N, Value, Storage)) return false; - if (Value.equals_lower("true") || Value.equals_lower("on") || - Value.equals_lower("yes") || Value == "1") { + if (Value.equals_insensitive("true") || Value.equals_insensitive("on") || + Value.equals_insensitive("yes") || Value == "1") { Result = true; return true; - } else if (Value.equals_lower("false") || Value.equals_lower("off") || - Value.equals_lower("no") || Value == "0") { + } else if (Value.equals_insensitive("false") || + Value.equals_insensitive("off") || + Value.equals_insensitive("no") || Value == "0") { Result = false; return true; } |
