Skip to content

Conversation

@mustartt
Copy link
Member

No description provided.

@mustartt mustartt closed this Feb 24, 2025
@github-actions
Copy link

⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️

You can test this locally with the following command:
git-clang-format --diff 0f6c18e8c65b273af7e7af7ef38f78b4b66c481b d19e6bdd76fc1d87b56272d25e6e2fbf0842588f --extensions cpp,c,h -- llvm/include/llvm/ExecutionEngine/JITLink/XCOFF.h llvm/include/llvm/ExecutionEngine/JITLink/XCOFF_ppc64.h llvm/lib/ExecutionEngine/JITLink/XCOFF.cpp llvm/lib/ExecutionEngine/JITLink/XCOFFLinkGraphBuilder.cpp llvm/lib/ExecutionEngine/JITLink/XCOFFLinkGraphBuilder.h llvm/lib/ExecutionEngine/JITLink/XCOFF_ppc64.cpp llvm/test/ExecutionEngine/JITLink/ppc64/XCOFF_ppc64.c llvm/include/llvm/ExecutionEngine/Orc/Core.h llvm/lib/ExecutionEngine/JITLink/JITLink.cpp llvm/lib/ExecutionEngine/Orc/Core.cpp llvm/lib/ExecutionEngine/Orc/LinkGraphLayer.cpp llvm/lib/ExecutionEngine/Orc/LoadLinkableFile.cpp llvm/lib/Object/XCOFFObjectFile.cpp
View the diff from clang-format here.
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/Core.h b/llvm/include/llvm/ExecutionEngine/Orc/Core.h
index 49fd0599c4..b29923105c 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/Core.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/Core.h
@@ -308,11 +308,10 @@ public:
   /// If Body returns true then the element just passed in is removed from the
   /// set. If Body returns false then the element is retained.
   template <typename BodyFn>
-  auto forEachWithRemoval(BodyFn &&Body)
-      -> std::enable_if_t<
-          std::is_same<decltype(Body(std::declval<const SymbolStringPtr &>(),
-                                     std::declval<SymbolLookupFlags>())),
-                       bool>::value> {
+  auto forEachWithRemoval(BodyFn &&Body) -> std::enable_if_t<
+      std::is_same<decltype(Body(std::declval<const SymbolStringPtr &>(),
+                                 std::declval<SymbolLookupFlags>())),
+                   bool>::value> {
     UnderlyingVector::size_type I = 0;
     while (I != Symbols.size()) {
       const auto &Name = Symbols[I].first;
@@ -331,12 +330,11 @@ public:
   /// returns true then the element just passed in is removed from the set. If
   /// Body returns false then the element is retained.
   template <typename BodyFn>
-  auto forEachWithRemoval(BodyFn &&Body)
-      -> std::enable_if_t<
-          std::is_same<decltype(Body(std::declval<const SymbolStringPtr &>(),
-                                     std::declval<SymbolLookupFlags>())),
-                       Expected<bool>>::value,
-          Error> {
+  auto forEachWithRemoval(BodyFn &&Body) -> std::enable_if_t<
+      std::is_same<decltype(Body(std::declval<const SymbolStringPtr &>(),
+                                 std::declval<SymbolLookupFlags>())),
+                   Expected<bool>>::value,
+      Error> {
     UnderlyingVector::size_type I = 0;
     while (I != Symbols.size()) {
       const auto &Name = Symbols[I].first;
diff --git a/llvm/lib/ExecutionEngine/JITLink/XCOFFLinkGraphBuilder.h b/llvm/lib/ExecutionEngine/JITLink/XCOFFLinkGraphBuilder.h
index a2bbd6ce99..d2e105eef3 100644
--- a/llvm/lib/ExecutionEngine/JITLink/XCOFFLinkGraphBuilder.h
+++ b/llvm/lib/ExecutionEngine/JITLink/XCOFFLinkGraphBuilder.h
@@ -45,7 +45,7 @@ private:
   const object::XCOFFObjectFile &Obj;
   std::unique_ptr<LinkGraph> G;
 
-  Section* UndefSection;
+  Section *UndefSection;
 
   DenseMap<uint16_t, Section *> SectionMap;
   DenseMap<uint16_t, object::SectionRef> SectionDataMap;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant