[clang] [llvm] [PowerPC] Support -fpatchable-function-entry (PR #92997)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu May 23 16:54:45 PDT 2024
================
@@ -6681,7 +6681,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
StringRef S0 = A->getValue(), S = S0;
unsigned Size, Offset = 0;
if (!Triple.isAArch64() && !Triple.isLoongArch() && !Triple.isRISCV() &&
- !Triple.isX86())
+ !Triple.isX86() &&
+ !(!Triple.isOSAIX() && (Triple.getArch() == llvm::Triple::ppc ||
----------------
MaskRay wrote:
little-endian variants (ppcle ppc64le) are omitted here.
Use `isPPC`
https://github.com/llvm/llvm-project/pull/92997
More information about the llvm-commits
mailing list