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

Sean Fertile via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 3 07:30:48 PDT 2025


================
@@ -2886,9 +2904,11 @@ void PPCAIXAsmPrinter::emitFunctionDescriptor() {
 void PPCAIXAsmPrinter::emitFunctionEntryLabel() {
   // For functions without user defined section, it's not necessary to emit the
   // label when we have individual function in its own csect.
-  if (!TM.getFunctionSections() || MF->getFunction().hasSection())
+  if (!TM.getFunctionSections() || (MF && MF->getFunction().hasSection()))
     PPCAsmPrinter::emitFunctionEntryLabel();
 
+  if (!MF)
----------------
mandlebug wrote:

Add comment explaining only ifunc will not have a MF.

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


More information about the llvm-commits mailing list