Mercurial > hg > CbC > CbC_llvm
comparison lld/Common/Version.cpp @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 79ff65ed7e25 |
children |
comparison
equal
deleted
inserted
replaced
232:70dce7da266c | 236:c4bab56944e8 |
---|---|
13 #include "lld/Common/Version.h" | 13 #include "lld/Common/Version.h" |
14 | 14 |
15 #include "VCSVersion.inc" | 15 #include "VCSVersion.inc" |
16 | 16 |
17 // Returns a version string, e.g.: | 17 // Returns a version string, e.g.: |
18 // lld 9.0.0 (https://github.com/llvm/llvm-project.git 9efdd7ac5e914d3c9fa1ef) | 18 // LLD 14.0.0 (https://github.com/llvm/llvm-project.git |
19 // 2d9759c7902c5cbc9a7e3ab623321d5578d51687) | |
19 std::string lld::getLLDVersion() { | 20 std::string lld::getLLDVersion() { |
20 #ifdef LLD_VENDOR | 21 #ifdef LLD_VENDOR |
21 #define LLD_VENDOR_DISPLAY LLD_VENDOR " " | 22 #define LLD_VENDOR_DISPLAY LLD_VENDOR " " |
22 #else | 23 #else |
23 #define LLD_VENDOR_DISPLAY | 24 #define LLD_VENDOR_DISPLAY |
24 #endif | 25 #endif |
25 #if defined(LLD_REPOSITORY) && defined(LLD_REVISION) | |
26 return LLD_VENDOR_DISPLAY "LLD " LLD_VERSION_STRING " (" LLD_REPOSITORY | |
27 " " LLD_REVISION ")"; | |
28 #else | |
29 return LLD_VENDOR_DISPLAY "LLD " LLD_VERSION_STRING; | 26 return LLD_VENDOR_DISPLAY "LLD " LLD_VERSION_STRING; |
30 #endif | |
31 #undef LLD_VENDOR_DISPLAY | 27 #undef LLD_VENDOR_DISPLAY |
32 } | 28 } |