summaryrefslogtreecommitdiff
path: root/SDKs
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-03-20 21:11:47 +0000
committerBill Wendling <isanbard@gmail.com>2013-03-20 21:11:47 +0000
commit84b46d300c7a4f1c3ea4e452791de7733ce0d143 (patch)
tree049ccc2b88be37135422bcb4e89192216b90c96c /SDKs
parent236a098869e35b29e938cbb7bd98d8d5b656d47f (diff)
Create a coverage initialization function.
This function replaces the call of `atexit' from being generated in the compile units. Basically, it registers the "writeout" and "flush" functions (if present). It will generate calls to the `atexit' function for cleanups and final writeout functions, but only once. This is better than checking for `main', because a library may not have a `main' function in it. <rdar://problem/12439551> git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177578 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'SDKs')
-rw-r--r--SDKs/darwin/usr/include/stdlib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/SDKs/darwin/usr/include/stdlib.h b/SDKs/darwin/usr/include/stdlib.h
index c18c2e49a..7c973dcc6 100644
--- a/SDKs/darwin/usr/include/stdlib.h
+++ b/SDKs/darwin/usr/include/stdlib.h
@@ -22,6 +22,7 @@
typedef __SIZE_TYPE__ size_t;
void abort(void) __attribute__((__noreturn__));
+int atexit(void (*)(void));
int atoi(const char *);
void free(void *);
char *getenv(const char *);