aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandObject.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2013-06-18 01:17:46 +0000
committerEnrico Granata <egranata@apple.com>2013-06-18 01:17:46 +0000
commitca5acdbef8132372c2965f044cd22260cc4987b2 (patch)
tree46d523263348ccbb48900ac8b19b12323f70112a /lldb/source/Interpreter/CommandObject.cpp
parent85d3eeb6e70b66134663c01647a66e333697dd5a (diff)
downloadllvm-ca5acdbef8132372c2965f044cd22260cc4987b2.zip
llvm-ca5acdbef8132372c2965f044cd22260cc4987b2.tar.gz
llvm-ca5acdbef8132372c2965f044cd22260cc4987b2.tar.bz2
<rdar://problem/13270271>
Only add the — (double dash) separator to a command syntax if it has any options to be separated from arguments Also remove the unused Translate() method from CommandObject llvm-svn: 184163
Diffstat (limited to 'lldb/source/Interpreter/CommandObject.cpp')
-rw-r--r--lldb/source/Interpreter/CommandObject.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp
index 67d57f1..291dc40 100644
--- a/lldb/source/Interpreter/CommandObject.cpp
+++ b/lldb/source/Interpreter/CommandObject.cpp
@@ -94,7 +94,7 @@ CommandObject::GetSyntax ()
if (m_arguments.size() > 0)
{
syntax_str.Printf (" ");
- if (WantsRawCommandString())
+ if (WantsRawCommandString() && GetOptions() && GetOptions()->NumCommandOptions())
syntax_str.Printf("-- ");
GetFormattedCommandArguments (syntax_str);
}
@@ -105,13 +105,6 @@ CommandObject::GetSyntax ()
}
const char *
-CommandObject::Translate ()
-{
- //return m_cmd_func_name.c_str();
- return "This function is currently not implemented.";
-}
-
-const char *
CommandObject::GetCommandName ()
{
return m_cmd_name.c_str();