aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-10-05 20:03:37 +0000
committerZachary Turner <zturner@google.com>2016-10-05 20:03:37 +0000
commit11eb9c64a260a51b5574132973fa2240f9b54c4b (patch)
treefb1d093a2fb459765452fb606a34017703d1db85 /lldb/source/Commands/CommandObjectBreakpointCommand.cpp
parent0a6916f30385c3d3d8dc4a8befd5b6ce57bad721 (diff)
downloadllvm-11eb9c64a260a51b5574132973fa2240f9b54c4b.zip
llvm-11eb9c64a260a51b5574132973fa2240f9b54c4b.tar.gz
llvm-11eb9c64a260a51b5574132973fa2240f9b54c4b.tar.bz2
Convert various CommandInterpreter functions to StringRef.
llvm-svn: 283370
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpointCommand.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectBreakpointCommand.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
index 1d2d6a1..ab9ed3f 100644
--- a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
+++ b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
@@ -562,7 +562,7 @@ protected:
return false;
}
- if (command.GetArgumentCount() == 0) {
+ if (command.empty()) {
result.AppendError(
"No breakpoint specified from which to delete the commands");
result.SetStatus(eReturnStatusFailed);
@@ -653,7 +653,7 @@ protected:
return false;
}
- if (command.GetArgumentCount() == 0) {
+ if (command.empty()) {
result.AppendError(
"No breakpoint specified for which to list the commands");
result.SetStatus(eReturnStatusFailed);