aboutsummaryrefslogtreecommitdiff
path: root/lld/MinGW
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/MinGW
parent4107898839c37bc7e5501fc313282d40719b0bc6 (diff)
downloadllvm-ed1539c6ad3d2c6e888985d21f841504f69beab3.zip
llvm-ed1539c6ad3d2c6e888985d21f841504f69beab3.tar.gz
llvm-ed1539c6ad3d2c6e888985d21f841504f69beab3.tar.bz2
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/MinGW')
-rw-r--r--lld/MinGW/Driver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/MinGW/Driver.cpp b/lld/MinGW/Driver.cpp
index 8f271ba4..f00f50a 100644
--- a/lld/MinGW/Driver.cpp
+++ b/lld/MinGW/Driver.cpp
@@ -437,7 +437,7 @@ bool mingw::link(ArrayRef<const char *> argsArr, llvm::raw_ostream &stdoutOS,
for (auto *a : args) {
switch (a->getOption().getID()) {
case OPT_INPUT:
- if (StringRef(a->getValue()).endswith_insensitive(".def"))
+ if (StringRef(a->getValue()).ends_with_insensitive(".def"))
add("-def:" + StringRef(a->getValue()));
else
add(prefix + StringRef(a->getValue()));