Lines Matching defs:atexit
113 // generated elsewhere which uses atexit instead, and it takes the destructor
228 /// Create a stub function, suitable for being passed to atexit,
247 CGF.StartFunction(GlobalDecl(&VD, DynamicInitKind::AtExit),
265 /// Register a global destructor using the C atexit runtime function.
275 // extern "C" int atexit(void (*f)(void));
280 "Argument to atexit has a wrong type.");
285 llvm::FunctionCallee atexit =
286 CGM.CreateRuntimeFunction(atexitTy, "atexit", llvm::AttributeList(),
288 if (llvm::Function *atexitFn = dyn_cast<llvm::Function>(atexit.getCallee()))
291 EmitNounwindRuntimeCall(atexit, dtorStub);
297 // registered by the atexit subroutine. If the referenced function is found,