[lld] [lld][ELF] Support LLVM repository and LLVM revision information (PR #97323)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 2 11:14:10 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 4134b33c6a362cb462b335177d6d9e8235f04309 2056f24b3d5c1f862e6f593ab0dafe0cb2061ce4 -- lld/Common/Version.cpp lld/ELF/Driver.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/Common/Version.cpp b/lld/Common/Version.cpp
index 13d077851e..78f7c6b69b 100644
--- a/lld/Common/Version.cpp
+++ b/lld/Common/Version.cpp
@@ -26,8 +26,8 @@ std::string lld::getLLDVersion() {
#if defined(LLVM_REPOSITORY) || defined(LLVM_REVISION)
return LLD_VENDOR_DISPLAY "LLD " LLD_VERSION_STRING " (" LLVM_REPOSITORY
" " LLVM_REVISION ")";
-#else
+#else
return LLD_VENDOR_DISPLAY "LLD " LLD_VERSION_STRING;
-#endif
+#endif
#undef LLD_VENDOR_DISPLAY
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/97323
More information about the llvm-commits
mailing list