[lld] bd484c9 - [lld] Remove unused LLD_REPOSITORY

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 4 13:04:15 PDT 2021


Author: Fangrui Song
Date: 2021-08-04T13:04:10-07:00
New Revision: bd484c994036c682c928b18ff06849d117c9819d

URL: https://github.com/llvm/llvm-project/commit/bd484c994036c682c928b18ff06849d117c9819d
DIFF: https://github.com/llvm/llvm-project/commit/bd484c994036c682c928b18ff06849d117c9819d.diff

LOG: [lld] Remove unused LLD_REPOSITORY

Remnant after D72803.

Distributions who want to customize the string can customize
LLD_VERSION_STRING instead.

Reviewed By: #lld-macho, mstorsjo, thakis

Differential Revision: https://reviews.llvm.org/D107416

Added: 
    

Modified: 
    lld/Common/Version.cpp

Removed: 
    


################################################################################
diff  --git a/lld/Common/Version.cpp b/lld/Common/Version.cpp
index f3768091cd0e1..ec6eda6a6748f 100644
--- a/lld/Common/Version.cpp
+++ b/lld/Common/Version.cpp
@@ -15,18 +15,14 @@
 #include "VCSVersion.inc"
 
 // Returns a version string, e.g.:
-// lld 9.0.0 (https://github.com/llvm/llvm-project.git 9efdd7ac5e914d3c9fa1ef)
+// LLD 14.0.0 (https://github.com/llvm/llvm-project.git
+// 2d9759c7902c5cbc9a7e3ab623321d5578d51687)
 std::string lld::getLLDVersion() {
 #ifdef LLD_VENDOR
 #define LLD_VENDOR_DISPLAY LLD_VENDOR " "
 #else
 #define LLD_VENDOR_DISPLAY
 #endif
-#if defined(LLD_REPOSITORY) && defined(LLD_REVISION)
-  return LLD_VENDOR_DISPLAY "LLD " LLD_VERSION_STRING " (" LLD_REPOSITORY
-                            " " LLD_REVISION ")";
-#else
   return LLD_VENDOR_DISPLAY "LLD " LLD_VERSION_STRING;
-#endif
 #undef LLD_VENDOR_DISPLAY
 }


        


More information about the llvm-commits mailing list