Skip to content

Commit 1715c0e

Browse files
authored
Merge pull request #1961 from apple/lldb-Remove-unused-version-defines-next
[lldb] Remove unused version defines
2 parents 20748b6 + 7148791 commit 1715c0e

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

lldb/source/lldb.cpp

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,23 +56,14 @@ const char *lldb_private::GetVersion() {
5656
}
5757
g_version_str += ")";
5858
}
59-
60-
#if LLDB_IS_BUILDBOT_BUILD
61-
std::string build_date = GetBuildDate();
62-
if(!build_date.empty())
63-
g_version_str += " (buildbot " + build_date + ")";
64-
#endif
6559

6660
#ifdef LLDB_ENABLE_SWIFT
6761
auto const swift_version = swift::version::getSwiftFullVersion();
6862
g_version_str += "\n" + swift_version;
69-
#endif // LLDB_ENABLE_SWIFT
70-
63+
#else
7164
// getSwiftFullVersion() also prints clang and llvm versions, no
7265
// need to print them again. We keep this code here to not diverge
7366
// too much from upstream.
74-
#undef LLDB_UPSTREAM
75-
#ifdef LLDB_UPSTREAM
7667
std::string clang_rev(clang::getClangRevision());
7768
if (clang_rev.length() > 0) {
7869
g_version_str += "\n clang revision ";
@@ -83,7 +74,7 @@ const char *lldb_private::GetVersion() {
8374
g_version_str += "\n llvm revision ";
8475
g_version_str += llvm_rev;
8576
}
86-
#endif // LLDB_UPSTREAM
77+
#endif // LLDB_ENABLE_SWIFT
8778
}
8879
return g_version_str.c_str();
8980
}

0 commit comments

Comments
 (0)