summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2018-08-06 00:04:51 +0000
committerRaphael Isemann <teemperor@gmail.com>2018-08-06 00:04:51 +0000
commit7022b5369d48ce9c281c748c6db3979923f945ad (patch)
tree6d80439a413b10362acd3d181a1bbfb7f73e54e3 /lldb/source/Commands
parentefd72d6a857345ec8b49ba6336af4186ed38032d (diff)
downloadbcm5719-llvm-7022b5369d48ce9c281c748c6db3979923f945ad.tar.gz
bcm5719-llvm-7022b5369d48ce9c281c748c6db3979923f945ad.zip
Remove duplicated code in CommandObjectQuit
Summary: We already have the same check directly before, so this code can never be reached (as seen in the test coverage). Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D50317 llvm-svn: 338976
Diffstat (limited to 'lldb/source/Commands')
-rw-r--r--lldb/source/Commands/CommandObjectQuit.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/lldb/source/Commands/CommandObjectQuit.cpp b/lldb/source/Commands/CommandObjectQuit.cpp
index 37ed12be358..a9c430ea51c 100644
--- a/lldb/source/Commands/CommandObjectQuit.cpp
+++ b/lldb/source/Commands/CommandObjectQuit.cpp
@@ -86,13 +86,6 @@ bool CommandObjectQuit::DoExecute(Args &command, CommandReturnObject &result) {
return false;
}
- if (command.GetArgumentCount() > 1) {
- result.AppendError("Too many arguments for 'quit'. Only an optional exit "
- "code is allowed");
- result.SetStatus(eReturnStatusFailed);
- return false;
- }
-
// We parse the exit code argument if there is one.
if (command.GetArgumentCount() == 1) {
llvm::StringRef arg = command.GetArgumentAtIndex(0);
OpenPOWER on IntegriCloud