Append F to the global destructors of module M.

Synopsis

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

void
appendToGlobalDtors(
    Module& M,
    Function* F,
    int Priority,
    Constant* Data = nullptr);

Description

Same as appendToGlobalCtors(), but for global dtors.

Parameters

Name

Description

M

Module whose global destructors are updated.

F

Function to append as a global destructor.

Priority

Priority of the destructor entry.

Data

Optional associated data constant, or nullptr.

Created with MrDocs