[Lldb-commits] [PATCH] D50317: Remove duplicated code in CommandObjectQuit

Raphael Isemann via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sun Aug 5 17:05:26 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL338976: Remove duplicated code in CommandObjectQuit (authored by teemperor, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D50317?vs=159237&id=159238#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D50317

Files:
  lldb/trunk/source/Commands/CommandObjectQuit.cpp


Index: lldb/trunk/source/Commands/CommandObjectQuit.cpp
===================================================================
--- lldb/trunk/source/Commands/CommandObjectQuit.cpp
+++ lldb/trunk/source/Commands/CommandObjectQuit.cpp
@@ -86,13 +86,6 @@
     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);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50317.159238.patch
Type: text/x-patch
Size: 665 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180806/7acfb90c/attachment.bin>


More information about the lldb-commits mailing list