[lldb] Fix version string when using LLDB_REVISION but not LLDB_REPOSITORY
authorJordan Rupprecht <rupprecht@google.com>
Wed, 19 Feb 2020 20:01:09 +0000 (12:01 -0800)
committerJordan Rupprecht <rupprecht@google.com>
Thu, 20 Feb 2020 18:07:50 +0000 (10:07 -0800)
commit0ffa6e1a7e1c5de36276375486f49277c6f95d0e
tree2dc05d2f7e4e96aaa1120094b5338679d88efe79
parentaf64b31959f634031e5ddbcf8df1fab69689bfee
[lldb] Fix version string when using LLDB_REVISION but not LLDB_REPOSITORY

Summary:
lldb's format string (line one) is:
`lldb version $clang_version ($lldb_repo revision $lldb_revision)`

When only using $lldb_revision and not $lldb_repo, this might look like:
`lldb version 11 ( revision 12345)`
which looks pretty ugly.

Aside: I'm not sure we really need all the different versions since we've moved to the monorepo layout -- I don't think anyone is using different llvm/clang/lldb revisions, are they? We could likely tidy this up further if we knew how people consumed the output of lldb --version.

Reviewers: labath, JDevlieghere, friss

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D74859
lldb/source/lldb.cpp