llvm::transformGlobalDtors

Apply Fn to the list of global destructors of module M.

Synopsis

Declared in <llvm/Transforms/Utils/ModuleUtils.h>

void
transformGlobalDtors(
    Module& M,
    GlobalCtorTransformFn const& Fn);

Description

Same as transformGlobalCtors(), but for global dtors.

Parameters

NameDescription
MModule whose global destructors are transformed.
FnTransform applied to each destructor record.