ΒΆbool optimizeGlobalCtorsList(
    llvm::Module& M,
    function_ref<bool(llvm::Function*)>
        ShouldRemove)

Description

Call "ShouldRemove" for every entry in M's global_ctor list and remove the entries for which it returns true. Return true if anything changed.

Declared at: llvm/include/llvm/Transforms/Utils/CtorUtils.h:26

Parameters

llvm::Module& M
function_ref<bool(llvm::Function*)> ShouldRemove