@@ -36,16 +36,6 @@ static const char *GetLLDBRepository() {
36
36
#endif
37
37
}
38
38
39
- #if LLDB_IS_BUILDBOT_BUILD
40
- static std::string GetBuildDate () {
41
- #if defined(LLDB_BUILD_DATE)
42
- return std::string (LLDB_BUILD_DATE);
43
- #else
44
- return std::string ();
45
- #endif
46
- }
47
- #endif
48
-
49
39
#define QUOTE (str ) #str
50
40
#define EXPAND_AND_QUOTE (str ) QUOTE(str)
51
41
@@ -71,23 +61,14 @@ const char *lldb_private::GetVersion() {
71
61
}
72
62
g_version_str += " )" ;
73
63
}
74
-
75
- #if LLDB_IS_BUILDBOT_BUILD
76
- std::string build_date = GetBuildDate ();
77
- if (!build_date.empty ())
78
- g_version_str += " (buildbot " + build_date + " )" ;
79
- #endif
80
64
81
65
#ifdef LLDB_ENABLE_SWIFT
82
66
auto const swift_version = swift::version::getSwiftFullVersion ();
83
67
g_version_str += " \n " + swift_version;
84
- #endif // LLDB_ENABLE_SWIFT
85
-
68
+ #else
86
69
// getSwiftFullVersion() also prints clang and llvm versions, no
87
70
// need to print them again. We keep this code here to not diverge
88
71
// too much from upstream.
89
- #undef LLDB_UPSTREAM
90
- #ifdef LLDB_UPSTREAM
91
72
std::string clang_rev (clang::getClangRevision ());
92
73
if (clang_rev.length () > 0 ) {
93
74
g_version_str += " \n clang revision " ;
@@ -98,7 +79,7 @@ const char *lldb_private::GetVersion() {
98
79
g_version_str += " \n llvm revision " ;
99
80
g_version_str += llvm_rev;
100
81
}
101
- #endif // LLDB_UPSTREAM
82
+ #endif // LLDB_ENABLE_SWIFT
102
83
}
103
84
return g_version_str.c_str ();
104
85
}
0 commit comments