[#llvm-transformGlobalCtors] = xref:llvm.adoc[llvm]::transformGlobalCtors :relfileprefix: ../ :mrdocs: Apply `Fn` to the list of global constructors of module `M.` == Synopsis Declared in `<llvm/Transforms/Utils/ModuleUtils.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void transformGlobalCtors( xref:llvm/Module.adoc[Module]& M, xref:llvm/GlobalCtorTransformFn.adoc[GlobalCtorTransformFn] const& Fn); ---- == Description Replaces each constructor record with the one returned by `Fn.` If nullptr was returned, the corresponding constructor will be removed from the array. For details see https://llvm.org/docs/LangRef.html#the‐llvm‐global‐ctors‐global‐variable == Parameters [cols="1,4"] |=== | Name| Description | *M* | Module whose global constructors are transformed. | *Fn* | Transform applied to each constructor record. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#