Lines Matching defs:atexit
114 // generated elsewhere which uses atexit instead, and it takes the destructor
232 /// Create a stub function, suitable for being passed to atexit,
321 /// Register a global destructor using the C atexit runtime function.
340 // extern "C" int atexit(void (*f)(void));
345 "Argument to atexit has a wrong type.");
350 llvm::FunctionCallee atexit =
351 CGM.CreateRuntimeFunction(atexitTy, "atexit", llvm::AttributeList(),
353 if (llvm::Function *atexitFn = dyn_cast<llvm::Function>(atexit.getCallee()))
356 EmitNounwindRuntimeCall(atexit, dtorStub);
362 // registered by the atexit subroutine. If the referenced function is found,