summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/asan_win.cc
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-02-22 14:07:06 +0000
committerAlexey Samsonov <samsonov@google.com>2012-02-22 14:07:06 +0000
commitd6651509d0ca313bf9f3bb1445138ac8566a620d (patch)
treec531de7a9ef31b186b96077b6206fe14820de250 /compiler-rt/lib/asan/asan_win.cc
parent36d297d27f9cd9999f0e785b9c2f5988beca693e (diff)
downloadbcm5719-llvm-d6651509d0ca313bf9f3bb1445138ac8566a620d.tar.gz
bcm5719-llvm-d6651509d0ca313bf9f3bb1445138ac8566a620d.zip
AddressSanitizer: get rid of stdlib.h and add (smaller) stddef.h instead
llvm-svn: 151162
Diffstat (limited to 'compiler-rt/lib/asan/asan_win.cc')
-rw-r--r--compiler-rt/lib/asan/asan_win.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/asan_win.cc b/compiler-rt/lib/asan/asan_win.cc
index 86bcc2c26a0..2692b0db5b7 100644
--- a/compiler-rt/lib/asan/asan_win.cc
+++ b/compiler-rt/lib/asan/asan_win.cc
@@ -16,6 +16,7 @@
#include <dbghelp.h>
#include <stdio.h> // FIXME: get rid of this.
+#include <stdlib.h>
#include <new> // FIXME: temporarily needed for placement new in AsanLock.
@@ -262,6 +263,10 @@ void Exit(int exitcode) {
_exit(exitcode);
}
+int Atexit(void (*function)(void)) {
+ return atexit(function);
+}
+
} // namespace __asan
#endif // _WIN32
OpenPOWER on IntegriCloud