Skip to content

Commit 62c153d

Browse files
authored
Revert "[llvm] Include LLVM_REPOSITORY and LLVM_REVISION in tool version (llvm#84…"
1 parent 1ad249b commit 62c153d

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

llvm/lib/Support/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,6 @@ add_llvm_component_library(LLVMSupport
279279
${LLVM_MAIN_INCLUDE_DIR}/llvm/Support
280280
${Backtrace_INCLUDE_DIRS}
281281

282-
DEPENDS
283-
llvm_vcsrevision_h
284-
285282
LINK_LIBS
286283
${system_libs} ${imported_libs} ${delayload_flags}
287284

llvm/lib/Support/CommandLine.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
#include "llvm/Support/Path.h"
4040
#include "llvm/Support/Process.h"
4141
#include "llvm/Support/StringSaver.h"
42-
#include "llvm/Support/VCSRevision.h"
4342
#include "llvm/Support/VirtualFileSystem.h"
4443
#include "llvm/Support/raw_ostream.h"
4544
#include <cstdlib>
@@ -2545,15 +2544,7 @@ class VersionPrinter {
25452544
#else
25462545
OS << "LLVM (http://llvm.org/):\n ";
25472546
#endif
2548-
OS << PACKAGE_NAME << " version " << PACKAGE_VERSION;
2549-
#ifdef LLVM_REPOSITORY
2550-
OS << " (" << LLVM_REPOSITORY;
2551-
#ifdef LLVM_REVISION
2552-
OS << ' ' << LLVM_REVISION;
2553-
#endif
2554-
OS << ')';
2555-
#endif
2556-
OS << "\n ";
2547+
OS << PACKAGE_NAME << " version " << PACKAGE_VERSION << "\n ";
25572548
#if LLVM_IS_DEBUG_BUILD
25582549
OS << "DEBUG build";
25592550
#else

0 commit comments

Comments
 (0)