diff options
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(); } |