LLVM 22.0.0git
LowerGlobalDtors.cpp File Reference

Lower @llvm.global_dtors. More...

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "lower-global-dtors"

Functions

 INITIALIZE_PASS (LowerGlobalDtorsLegacyPass, DEBUG_TYPE, "Lower @llvm.global_dtors via `__cxa_atexit`", false, false) ModulePass *llvm
static bool runImpl (Module &M)

Detailed Description

Lower @llvm.global_dtors.

Implement @llvm.global_dtors by creating wrapper functions that are registered in @llvm.global_ctors and which contain a call to __cxa_atexit to register their destructor functions.

Definition in file LowerGlobalDtors.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "lower-global-dtors"

Definition at line 32 of file LowerGlobalDtors.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( LowerGlobalDtorsLegacyPass ,
DEBUG_TYPE ,
"Lower @llvm.global_dtors via `__cxa_atexit`" ,
false ,
false  )

Definition at line 56 of file LowerGlobalDtors.cpp.

References llvm::createLowerGlobalDtorsLegacyPass(), and DEBUG_TYPE.

◆ runImpl()