[PATCH] D129176: [ORC][LLJIT] Enable AutoClaimWeakHiddenSymbols option in PPC64 environment.

Sunho Kim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 6 01:40:30 PDT 2022


sunho updated this revision to Diff 442465.

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129176/new/

https://reviews.llvm.org/D129176

Files:
  llvm/lib/ExecutionEngine/Orc/LLJIT.cpp


Index: llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
===================================================================
--- llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
+++ llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
@@ -745,6 +745,10 @@
     Layer->setAutoClaimResponsibilityForObjectSymbols(true);
   }
 
+  if (S.JTMB->getTargetTriple().getArch() == Triple::ArchType::ppc64 ||
+      S.JTMB->getTargetTriple().getArch() == Triple::ArchType::ppc64le)
+    Layer->setAutoClaimResponsibilityForWeakHiddenSymbols(true);
+
   // FIXME: Explicit conversion to std::unique_ptr<ObjectLayer> added to silence
   //        errors from some GCC / libstdc++ bots. Remove this conversion (i.e.
   //        just return ObjLinkingLayer) once those bots are upgraded.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129176.442465.patch
Type: text/x-patch
Size: 739 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220706/4d1fdedb/attachment.bin>


More information about the llvm-commits mailing list