Lines Matching defs:atexit
114 // generated elsewhere which uses atexit instead, and it takes the destructor
233 /// Create a stub function, suitable for being passed to atexit,
327 /// Register a global destructor using the C atexit runtime function.
347 // extern "C" int atexit(void (*f)(void));
352 "Argument to atexit has a wrong type.");
357 llvm::FunctionCallee atexit =
358 CGM.CreateRuntimeFunction(atexitTy, "atexit", llvm::AttributeList(),
360 if (llvm::Function *atexitFn = dyn_cast<llvm::Function>(atexit.getCallee()))
363 EmitNounwindRuntimeCall(atexit, dtorStub);
369 // registered by the atexit subroutine. If the referenced function is found,