[clang] [llvm] [clang-tools-extra] [llvm] Support IFuncs on Darwin platforms (PR #73686)

Ahmed Bougacha via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 5 16:00:59 PST 2023


================
@@ -882,8 +882,11 @@ class AsmPrinter : public MachineFunctionPass {
 
   GCMetadataPrinter *getOrCreateGCPrinter(GCStrategy &S);
   void emitGlobalAlias(Module &M, const GlobalAlias &GA);
-  void emitGlobalIFunc(Module &M, const GlobalIFunc &GI);
 
+protected:
+  virtual void emitGlobalIFunc(Module &M, const GlobalIFunc &GI);
----------------
ahmedbougacha wrote:

Probably deserves to be with `emitGlobalVariable` or "overridable hooks" above?  (but maybe the hooks can be finer-grained, see later comment)

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


More information about the cfe-commits mailing list