summaryrefslogtreecommitdiff
path: root/lldb/source/lldb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/lldb.cpp')
-rw-r--r--lldb/source/lldb.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/lldb.cpp b/lldb/source/lldb.cpp
index c96f5d9ee7e17..6d4ed66074dc2 100644
--- a/lldb/source/lldb.cpp
+++ b/lldb/source/lldb.cpp
@@ -1,4 +1,4 @@
-//===-- lldb.cpp ------------------------------------------------*- C++ -*-===//
+//===-- lldb.cpp ----------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -50,8 +50,10 @@ const char *lldb_private::GetVersion() {
g_version_str += " (";
if (lldb_repo)
g_version_str += lldb_repo;
+ if (lldb_repo && lldb_rev)
+ g_version_str += " ";
if (lldb_rev) {
- g_version_str += " revision ";
+ g_version_str += "revision ";
g_version_str += lldb_rev;
}
g_version_str += ")";