diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:12:36 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:12:36 +0000 |
commit | ef5d0b5e97ec8e6fa395d377b09aa7755e345b4f (patch) | |
tree | 27916256fdeeb57d10d2f3d6948be5d71a703215 /source/lldb.cpp | |
parent | 76e0736e7fcfeb179779e49c05604464b1ccd704 (diff) |
Notes
Diffstat (limited to 'source/lldb.cpp')
-rw-r--r-- | source/lldb.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/source/lldb.cpp b/source/lldb.cpp index efdcef8f0527a..1be0461977700 100644 --- a/source/lldb.cpp +++ b/source/lldb.cpp @@ -15,11 +15,11 @@ using namespace lldb_private; #include "clang/Basic/Version.h" #ifdef HAVE_SVN_VERSION_INC -# include "SVNVersion.inc" +#include "SVNVersion.inc" #endif #ifdef HAVE_APPLE_VERSION_INC -# include "AppleVersion.inc" +#include "AppleVersion.inc" #endif static const char *GetLLDBRevision() { @@ -38,7 +38,6 @@ static const char *GetLLDBRepository() { #endif } - #define QUOTE(str) #str #define EXPAND_AND_QUOTE(str) QUOTE(str) @@ -47,13 +46,9 @@ const char *lldb_private::GetVersion() { // as the clang tool. static std::string g_version_str; if (g_version_str.empty()) { - -#ifdef LLDB_VERSION_STRING - g_version_str += EXPAND_AND_QUOTE(LLDB_VERSION_STRING); -#else g_version_str += "lldb version "; g_version_str += CLANG_VERSION_STRING; -#endif + const char *lldb_repo = GetLLDBRepository(); const char *lldb_rev = GetLLDBRevision(); if (lldb_repo || lldb_rev) { @@ -77,7 +72,6 @@ const char *lldb_private::GetVersion() { g_version_str += "\n llvm revision "; g_version_str += llvm_rev; } - } return g_version_str.c_str(); } |