aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectThread.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-05-16 20:47:12 -0700
committerGitHub <noreply@github.com>2024-05-16 20:47:12 -0700
commitc33922666ce219fd6cb3341c3394f72050599552 (patch)
tree7b13826a8982993e46f96d0a9046b9c9e8dc0683 /lldb/source/Commands/CommandObjectThread.cpp
parent9f15aa009c36d2c108f0f2d09c2e9b283ebc4453 (diff)
downloadllvm-c33922666ce219fd6cb3341c3394f72050599552.zip
llvm-c33922666ce219fd6cb3341c3394f72050599552.tar.gz
llvm-c33922666ce219fd6cb3341c3394f72050599552.tar.bz2
[lldb] Use operator==(StringRef, StringRef) instead of StringRef::equals (NFC) (#92476)
Note that StringRef::equals has been deprecated in favor of operator==(StringRef, StringRef).
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectThread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp
index 3dbbfd4..4397ee1 100644
--- a/lldb/source/Commands/CommandObjectThread.cpp
+++ b/lldb/source/Commands/CommandObjectThread.cpp
@@ -151,14 +151,14 @@ public:
for (size_t idx = 0; idx < num_entries; idx++) {
llvm::StringRef arg_string = copy_args[idx].ref();
- if (arg_string.equals("-c") || count_opt.starts_with(arg_string)) {
+ if (arg_string == "-c" || count_opt.starts_with(arg_string)) {
idx++;
if (idx == num_entries)
return std::nullopt;
count_idx = idx;
if (copy_args[idx].ref().getAsInteger(0, count_val))
return std::nullopt;
- } else if (arg_string.equals("-s") || start_opt.starts_with(arg_string)) {
+ } else if (arg_string == "-s" || start_opt.starts_with(arg_string)) {
idx++;
if (idx == num_entries)
return std::nullopt;