Skip to content

Commit 83253b2

Browse files
committed
[lldb] Remove unused version defines
1 parent 44872a7 commit 83253b2

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

lldb/source/lldb.cpp

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,6 @@ static const char *GetLLDBRepository() {
3636
#endif
3737
}
3838

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-
4939
#define QUOTE(str) #str
5040
#define EXPAND_AND_QUOTE(str) QUOTE(str)
5141

@@ -71,34 +61,11 @@ const char *lldb_private::GetVersion() {
7161
}
7262
g_version_str += ")";
7363
}
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
8064

8165
#ifdef LLDB_ENABLE_SWIFT
8266
auto const swift_version = swift::version::getSwiftFullVersion();
8367
g_version_str += "\n" + swift_version;
8468
#endif // LLDB_ENABLE_SWIFT
85-
86-
// getSwiftFullVersion() also prints clang and llvm versions, no
87-
// need to print them again. We keep this code here to not diverge
88-
// too much from upstream.
89-
#undef LLDB_UPSTREAM
90-
#ifdef LLDB_UPSTREAM
91-
std::string clang_rev(clang::getClangRevision());
92-
if (clang_rev.length() > 0) {
93-
g_version_str += "\n clang revision ";
94-
g_version_str += clang_rev;
95-
}
96-
std::string llvm_rev(clang::getLLVMRevision());
97-
if (llvm_rev.length() > 0) {
98-
g_version_str += "\n llvm revision ";
99-
g_version_str += llvm_rev;
100-
}
101-
#endif // LLDB_UPSTREAM
10269
}
10370
return g_version_str.c_str();
10471
}

0 commit comments

Comments
 (0)