[lld] [clang] [llvm] Embed the command line arguments during LTO (PR #79390)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 24 15:25:18 PST 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 2e81ac25b4e2bfdc71aac19a911525a7f35680be 5a7c330982873c9198ef8c6f90d10f3ccb9ac5d9 -- clang/lib/CodeGen/BackendUtil.cpp lld/COFF/Driver.cpp lld/COFF/LTO.cpp lld/Common/CommonLinkerContext.cpp lld/ELF/Driver.cpp lld/ELF/LTO.cpp lld/MachO/Driver.cpp lld/MachO/LTO.cpp lld/MinGW/Driver.cpp lld/include/lld/Common/CommonLinkerContext.h lld/wasm/Driver.cpp lld/wasm/LTO.cpp llvm/include/llvm/LTO/Config.h llvm/include/llvm/LTO/LTOBackend.h llvm/lib/Bitcode/Writer/BitcodeWriter.cpp llvm/lib/LTO/LTO.cpp llvm/lib/LTO/LTOBackend.cpp llvm/lib/LTO/LTOCodeGenerator.cpp
``````````

</details>

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

``````````diff
diff --git a/lld/include/lld/Common/CommonLinkerContext.h b/lld/include/lld/Common/CommonLinkerContext.h
index e52387ff64..19a8212cae 100644
--- a/lld/include/lld/Common/CommonLinkerContext.h
+++ b/lld/include/lld/Common/CommonLinkerContext.h
@@ -21,8 +21,8 @@
 
 #include "lld/Common/ErrorHandler.h"
 #include "lld/Common/Memory.h"
-#include "llvm/Support/StringSaver.h"
 #include "llvm/Option/ArgList.h"
+#include "llvm/Support/StringSaver.h"
 
 namespace llvm {
 class raw_ostream;

``````````

</details>


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


More information about the cfe-commits mailing list