summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandObject.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2012-05-29 20:04:10 +0000
committerJohnny Chen <johnny.chen@apple.com>2012-05-29 20:04:10 +0000
commit797a1b37e55eb0c035245c1c0e3363d29873ef68 (patch)
tree7075ebf8cb0fa5d4ea56100e1b8817a505d620bb /lldb/source/Interpreter/CommandObject.cpp
parent836914c0aaaf7f4d6576445d163e3e15d91734e6 (diff)
downloadbcm5719-llvm-797a1b37e55eb0c035245c1c0e3363d29873ef68.tar.gz
bcm5719-llvm-797a1b37e55eb0c035245c1c0e3363d29873ef68.zip
Fix arch_helper() to return the list of supported architectures.
llvm-svn: 157643
Diffstat (limited to 'lldb/source/Interpreter/CommandObject.cpp')
-rw-r--r--lldb/source/Interpreter/CommandObject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp
index af9aa39e7ed..dbbd0936aa0 100644
--- a/lldb/source/Interpreter/CommandObject.cpp
+++ b/lldb/source/Interpreter/CommandObject.cpp
@@ -850,12 +850,12 @@ static
const char *arch_helper()
{
static StreamString g_archs_help;
- if (g_archs_help.GetData() == NULL)
+ if (g_archs_help.Empty())
{
StringList archs;
ArchSpec::AutoComplete(NULL, archs);
g_archs_help.Printf("These are the supported architecture names:\n");
- archs.Join("%s\n", g_archs_help);
+ archs.Join("\n", g_archs_help);
}
return g_archs_help.GetData();
}
OpenPOWER on IntegriCloud