summaryrefslogtreecommitdiff
path: root/lld/Common
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-05-16 10:12:42 -0700
committerKazu Hirata <kazu@google.com>2023-05-16 10:12:42 -0700
commited1539c6ad3d2c6e888985d21f841504f69beab3 (patch)
treeb66a52d786b827ac64042e38cdf8bc14688dfc21 /lld/Common
parent4107898839c37bc7e5501fc313282d40719b0bc6 (diff)
downloadllvm-ed1539c6ad3d2c6e888985d21f841504f69beab3.tar.gz
Migrate {starts,ends}with_insensitive to {starts,ends}_with_insensitive (NFC)
This patch migrates uses of StringRef::{starts,ends}with_insensitive to StringRef::{starts,ends}_with_insensitive so that we can use names similar to those used in std::string_view. Note that the llvm/ directory has migrated in commit 6c3ea866e93003e16fc55d3b5cedd3bc371d1fde. I'll post a separate patch to deprecate StringRef::{starts,ends}with_insensitive. Differential Revision: https://reviews.llvm.org/D150506
Diffstat (limited to 'lld/Common')
-rw-r--r--lld/Common/Args.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/Common/Args.cpp b/lld/Common/Args.cpp
index b6d050bb1f77..d0249fef856f 100644
--- a/lld/Common/Args.cpp
+++ b/lld/Common/Args.cpp
@@ -87,7 +87,7 @@ std::vector<StringRef> lld::args::getLines(MemoryBufferRef mb) {
}
StringRef lld::args::getFilenameWithoutExe(StringRef path) {
- if (path.endswith_insensitive(".exe"))
+ if (path.ends_with_insensitive(".exe"))
return sys::path::stem(path);
return sys::path::filename(path);
}