ΒΆvoid appendToGlobalCtors(
llvm::Module& M,
llvm::Function* F,
int Priority,
llvm::Constant* Data = nullptr)
void appendToGlobalCtors(
llvm::Module& M,
llvm::Function* F,
int Priority,
llvm::Constant* Data = nullptr)
Description
Append F to the list of global ctors of module M with the given Priority. This wraps the function in the appropriate structure and stores it along side other global constructors. For details see http://llvm.org/docs/LangRef.html#intg_global_ctors
Declared at: llvm/include/llvm/Transforms/Utils/ModuleUtils.h:37
Parameters
- llvm::Module& M
- llvm::Function* F
- int Priority
- llvm::Constant* Data = nullptr