[llvm] Partial work on JITLink ARM64-COFF (PR #89697)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 22 22:57:15 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 54a6798e0a3630e705ed32dbbd63414a16331085 9d72ad32e8c36c7a519513b6fac04ec654d2d9fd -- llvm/include/llvm/ExecutionEngine/JITLink/COFF_arm64.h llvm/lib/ExecutionEngine/JITLink/COFF_arm64.cpp llvm/include/llvm/ExecutionEngine/JITLink/aarch64.h llvm/lib/ExecutionEngine/JITLink/COFF.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/ExecutionEngine/JITLink/COFF_arm64.h b/llvm/include/llvm/ExecutionEngine/JITLink/COFF_arm64.h
index 48580204dd..e34b2d5129 100644
--- a/llvm/include/llvm/ExecutionEngine/JITLink/COFF_arm64.h
+++ b/llvm/include/llvm/ExecutionEngine/JITLink/COFF_arm64.h
@@ -28,7 +28,7 @@ createLinkGraphFromCOFFObject_arm64(MemoryBufferRef ObjectBuffer);
 
 /// jit-link the given object buffer, which must be a COFF arm64 object file.
 void link_COFF_arm64(std::unique_ptr<LinkGraph> G,
-                      std::unique_ptr<JITLinkContext> Ctx);
+                     std::unique_ptr<JITLinkContext> Ctx);
 
 /// Return the string name of the given COFF arm64 edge kind.
 const char *getCOFFARM64RelocationKindName(Edge::Kind R);
diff --git a/llvm/lib/ExecutionEngine/JITLink/COFF.cpp b/llvm/lib/ExecutionEngine/JITLink/COFF.cpp
index 5d8d5b2ca9..893b1be9de 100644
--- a/llvm/lib/ExecutionEngine/JITLink/COFF.cpp
+++ b/llvm/lib/ExecutionEngine/JITLink/COFF.cpp
@@ -13,8 +13,8 @@
 #include "llvm/ExecutionEngine/JITLink/COFF.h"
 
 #include "llvm/BinaryFormat/COFF.h"
-#include "llvm/ExecutionEngine/JITLink/COFF_x86_64.h"
 #include "llvm/ExecutionEngine/JITLink/COFF_arm64.h"
+#include "llvm/ExecutionEngine/JITLink/COFF_x86_64.h"
 #include "llvm/Object/COFF.h"
 #include "llvm/Support/Format.h"
 #include "llvm/Support/MemoryBuffer.h"
@@ -114,7 +114,7 @@ createLinkGraphFromCOFFObject(MemoryBufferRef ObjectBuffer) {
   case COFF::IMAGE_FILE_MACHINE_AMD64:
     return createLinkGraphFromCOFFObject_x86_64(ObjectBuffer);
   case COFF::IMAGE_FILE_MACHINE_ARM64:
-      return createLinkGraphFromCOFFObject_arm64(ObjectBuffer);
+    return createLinkGraphFromCOFFObject_arm64(ObjectBuffer);
   default:
     return make_error<JITLinkError>(
         "Unsupported target machine architecture in COFF object " +

``````````

</details>


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


More information about the llvm-commits mailing list