diff options
| author | Kostya Serebryany <kcc@google.com> | 2012-01-06 02:12:25 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2012-01-06 02:12:25 +0000 |
| commit | 2b08718bba408948d56fe1e5cbd85065ab62f119 (patch) | |
| tree | 594cb7f3b6b5b79f2d92623f5f49b40d6483a858 /compiler-rt/lib/asan/asan_rtl.cc | |
| parent | 4017fa399b0018a08bf6ae81fcb6900848034a6f (diff) | |
| download | bcm5719-llvm-2b08718bba408948d56fe1e5cbd85065ab62f119.tar.gz bcm5719-llvm-2b08718bba408948d56fe1e5cbd85065ab62f119.zip | |
[asan] move more stuff to OS-specific files
llvm-svn: 147647
Diffstat (limited to 'compiler-rt/lib/asan/asan_rtl.cc')
| -rw-r--r-- | compiler-rt/lib/asan/asan_rtl.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/compiler-rt/lib/asan/asan_rtl.cc b/compiler-rt/lib/asan/asan_rtl.cc index 583a971850e..efd044c502c 100644 --- a/compiler-rt/lib/asan/asan_rtl.cc +++ b/compiler-rt/lib/asan/asan_rtl.cc @@ -26,7 +26,6 @@ #include <new> #include <dlfcn.h> -#include <execinfo.h> #include <fcntl.h> #include <pthread.h> #include <signal.h> @@ -40,9 +39,6 @@ #ifndef ANDROID #include <sys/ucontext.h> #endif -#include <sys/time.h> -#include <sys/resource.h> -#include <unistd.h> // must not include <setjmp.h> on Linux namespace __asan { @@ -775,10 +771,7 @@ void __asan_init() { if (__WORDSIZE == 64) { // Disable core dumper -- it makes little sense to dump 16T+ core. - struct rlimit nocore; - nocore.rlim_cur = 0; - nocore.rlim_max = 0; - setrlimit(RLIMIT_CORE, &nocore); + AsanDisableCoreDumper(); } { |

