summaryrefslogtreecommitdiffstats
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
parent85d3eeb6e70b66134663c01647a66e333697dd5a (diff)
downloadbcm5719-llvm-ca5acdbef8132372c2965f044cd22260cc4987b2.tar.gz
bcm5719-llvm-ca5acdbef8132372c2965f044cd22260cc4987b2.zip
<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
-rw-r--r--lldb/include/lldb/Interpreter/CommandObject.h5
-rw-r--r--lldb/source/Interpreter/CommandObject.cpp9
2 files changed, 2 insertions, 12 deletions
diff --git a/lldb/include/lldb/Interpreter/CommandObject.h b/lldb/include/lldb/Interpreter/CommandObject.h
index 6ddebdb563a..2bfab0a8ecc 100644
--- a/lldb/include/lldb/Interpreter/CommandObject.h
+++ b/lldb/include/lldb/Interpreter/CommandObject.h
@@ -108,9 +108,6 @@ public:
GetSyntax ();
const char *
- Translate ();
-
- const char *
GetCommandName ();
void
@@ -129,7 +126,7 @@ public:
// the Command object from the Command dictionary (aliases have their own
// deletion scheme, so they do not need to care about this)
virtual bool
- IsRemovable() const { return false; }
+ IsRemovable () const { return false; }
bool
IsAlias () { return m_is_alias; }
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp
index 67d57f1b1e1..291dc401357 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();
OpenPOWER on IntegriCloud