aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandObject.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2015-04-17 00:44:36 +0000
committerJim Ingham <jingham@apple.com>2015-04-17 00:44:36 +0000
commitde50d36ab39b9d591bae6562f76a6e0c3169e84b (patch)
tree651b53b75d5680d7cd9cae946a904595eb6aeaf2 /lldb/source/Interpreter/CommandObject.cpp
parenta09bcd0632ce7b15cfb4788d15e4df54034cf284 (diff)
downloadllvm-de50d36ab39b9d591bae6562f76a6e0c3169e84b.zip
llvm-de50d36ab39b9d591bae6562f76a6e0c3169e84b.tar.gz
llvm-de50d36ab39b9d591bae6562f76a6e0c3169e84b.tar.bz2
Fix "help language", the languages printer was assuming the
eLanguageType numbers would be sequential, but vendor types are not and the printer went crazy. llvm-svn: 235153
Diffstat (limited to 'lldb/source/Interpreter/CommandObject.cpp')
-rw-r--r--lldb/source/Interpreter/CommandObject.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp
index c3883b8..9b51b7e 100644
--- a/lldb/source/Interpreter/CommandObject.cpp
+++ b/lldb/source/Interpreter/CommandObject.cpp
@@ -850,12 +850,9 @@ LanguageTypeHelpTextCallback ()
StreamString sstr;
sstr << "One of the following languages:\n";
-
- for (unsigned int l = eLanguageTypeUnknown; l < eNumLanguageTypes; ++l)
- {
- sstr << " " << LanguageRuntime::GetNameForLanguageType(static_cast<LanguageType>(l)) << "\n";
- }
-
+
+ LanguageRuntime::PrintAllLanguages(sstr, " ", "\n");
+
sstr.Flush();
std::string data = sstr.GetString();