From cfca06d7963fa0909f90483b42a6d7d194d01e08 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 26 Jul 2020 19:36:28 +0000 Subject: Vendor import of llvm-project master 2e10b7a39b9, the last commit before the llvmorg-12-init tag, from which release/11.x was branched. --- lldb/source/lldb.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lldb/source/lldb.cpp') 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 += ")"; -- cgit v1.2.3