[clang] [compiler-rt] [llvm] [AIX] Implement the ifunc attribute. (PR #153049)

Sean Fertile via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 25 07:35:41 PDT 2025


================
@@ -2884,6 +2901,12 @@ void PPCAIXAsmPrinter::emitFunctionDescriptor() {
 }
 
 void PPCAIXAsmPrinter::emitFunctionEntryLabel() {
+  if (!MF) { // TODO: MF is unset when processing an ifunc, handle it better.
----------------
mandlebug wrote:

Can you clean this up by changing the conditional in line 2912 to `!TM.getFunctionSections() || (MF && MF->getFunction().hasSection())` then after have an early return if MF is null?

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


More information about the llvm-commits mailing list