================
@@ -1809,6 +1814,255 @@ void AArch64AsmPrinter::emitInstruction(const 
MachineInstr *MI) {
   EmitToStreamer(*OutStreamer, TmpInst);
 }
 
+void AArch64AsmPrinter::emitGlobalIFunc(Module &M, const GlobalIFunc &GI) {
+  if (!TM.getTargetTriple().isOSBinFormatMachO())
+    return AsmPrinter::emitGlobalIFunc(M, GI);
----------------
ahmedbougacha wrote:

How about having all the lazy/stub symbol machinery in AsmPrinter proper, and 
only having target-specific "emit macho stub/helper body" overridable hooks?
I ask because I wondered "when would you have `!MAI->getWeakRefDirective()` for 
macho?" and noticed that's from the base anyway.  I imagine moving this 
wouldn't change that, because this'd still be in a macho-specific bit there.  
But at least if the ELF base changes, the macho version would be right there 
next to it ;)  WDYT?

https://github.com/llvm/llvm-project/pull/73686
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to