[lld] [ELF] Add --thinlto-index= (PR #109534)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 21 09:38:38 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 18225c783a00bde62f19a177a57de388e20c2bba 0f57d5e19a1a9fe617a3513163a7777f0bf5dea5 --extensions h,cpp -- lld/ELF/Config.h lld/ELF/Driver.cpp lld/ELF/LTO.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/ELF/LTO.cpp b/lld/ELF/LTO.cpp
index 2398b36dad..0de4e6de1e 100644
--- a/lld/ELF/LTO.cpp
+++ b/lld/ELF/LTO.cpp
@@ -205,8 +205,8 @@ BitcodeCompiler::BitcodeCompiler() {
if (auto os = openFile(ctx.arg.thinLTOIndex)) {
for (BitcodeFile *file : ctx.bitcodeFiles) {
StringRef nativeDir = ctx.arg.thinLTOPrefixReplaceNativeObject.empty()
- ? ctx.arg.thinLTOPrefixReplaceNew
- : ctx.arg.thinLTOPrefixReplaceNativeObject;
+ ? ctx.arg.thinLTOPrefixReplaceNew
+ : ctx.arg.thinLTOPrefixReplaceNativeObject;
*os << file->getName() << '='
<< lto::getThinLTOOutputFile(replaceThinLTOSuffix(file->getName()),
ctx.arg.thinLTOPrefixReplaceOld,
``````````
</details>
https://github.com/llvm/llvm-project/pull/109534
More information about the llvm-commits
mailing list