[lld] [llvm] [COFF] Rename the COFFShortExport::AliasTarget field (PR #89039)

via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 17 02:10:06 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 dbaa1893c9afe6a245860efb8d68875ba4fd6794 a496284dfcb8fc23d333741df99f985f175f37d3 -- lld/COFF/Config.h lld/COFF/Driver.cpp llvm/include/llvm/Object/COFFImportFile.h llvm/lib/Object/COFFImportFile.cpp llvm/lib/Object/COFFModuleDefinition.cpp llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Object/COFFImportFile.cpp b/llvm/lib/Object/COFFImportFile.cpp
index 7c3874a5fe..5e46a62218 100644
--- a/llvm/lib/Object/COFFImportFile.cpp
+++ b/llvm/lib/Object/COFFImportFile.cpp
@@ -691,7 +691,8 @@ Error writeImportLibrary(StringRef ImportName, StringRef Path,
       }
 
       if (!E.ImportTarget.empty() && Name != E.ImportTarget) {
-        Members.push_back(OF.createWeakExternal(E.ImportTarget, Name, false, M));
+        Members.push_back(
+            OF.createWeakExternal(E.ImportTarget, Name, false, M));
         Members.push_back(OF.createWeakExternal(E.ImportTarget, Name, true, M));
         continue;
       }

``````````

</details>


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


More information about the llvm-commits mailing list