Same as appendToGlobalCtors(), but for global dtors.
Declared in <llvm/Transforms/Utils/ModuleUtils.h>
void
appendToGlobalDtors(
Module& M,
Function* F,
int Priority,
Constant* Data = nullptr);
| Name | Description |
|---|---|
| M | A Module instance is used to store all the information related to an LLVM module. Modules are the top level container of all other LLVM Intermediate Representation (IR) objects. Each module directly contains a list of globals variables, a list of functions, a list of libraries (or other modules) this module depends on, a symbol table, and various data about the target's characteristics. |
| Data | This is an important base class in LLVM. It provides the common facilities of all constant values in an LLVM program. A constant is a value that is immutable at runtime. Functions are constants because their address is immutable. Same with global variables. |