llvm::LowerGlobalDtorsPass

Pass that lowers llvm.global_dtors via wrappers registered in llvm.global_ctors.

Synopsis

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

class LowerGlobalDtorsPass
    : public OptionalPassInfoMixin<LowerGlobalDtorsPass>

Description

Creates wrapper functions that are registered in llvm.global_ctors and which contain a call to __cxa_atexit to register their destructor functions.

Base Classes

NameDescription
OptionalPassInfoMixin<LowerGlobalDtorsPass>A CRTP mix-in for passes that can be skipped.

Member Functions

NameDescription
run Run the lower-global-dtors pass over the module.

Static Member Functions

NameDescription
isRequired Return false; optional passes may be skipped.