[lld] [LLD][COFF] Add -build-id flag to generate .buildid section. (PR #71433)

via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 7 12:53:46 PST 2023


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 1ad920f05efdbb80e449f6ec00e79a3677acc922 0460323822e26c1d4f83642c2e48e38799358e22 -- lld/COFF/Config.h lld/COFF/Driver.cpp lld/COFF/Writer.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/lld/COFF/Writer.cpp b/lld/COFF/Writer.cpp
index 490c265a9dd0..eff292bd9449 100644
--- a/lld/COFF/Writer.cpp
+++ b/lld/COFF/Writer.cpp
@@ -123,7 +123,7 @@ public:
     records.emplace_back(type, c);
   }
 
-  Chunk* getBuildIdChunk() {
+  Chunk *getBuildIdChunk() {
     for (const std::pair<COFF::DebugType, Chunk *> &record : records) {
       if (record.first == COFF::IMAGE_DEBUG_TYPE_CODEVIEW)
         return record.second;

``````````

</details>


https://github.com/llvm/llvm-project/pull/71433


More information about the llvm-commits mailing list