[asan] refactoring: move some common linux/mac code to asan_posix.cc
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147788 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/asan/asan_thread.cc b/lib/asan/asan_thread.cc
index 78ce64c..459b2ef 100644
--- a/lib/asan/asan_thread.cc
+++ b/lib/asan/asan_thread.cc
@@ -17,10 +17,6 @@
#include "asan_thread.h"
#include "asan_mapping.h"
-#include <pthread.h>
-#include <stdlib.h>
-#include <string.h>
-
namespace __asan {
AsanThread::AsanThread(LinkerInitialized x)
@@ -58,9 +54,9 @@
fake_stack_.Init(stack_size());
if (FLAG_v >= 1) {
int local = 0;
- Report("T%d: stack [%p,%p) size 0x%lx; local=%p, pthread_self=%p\n",
+ Report("T%d: stack [%p,%p) size 0x%lx; local=%p\n",
tid(), stack_bottom_, stack_top_,
- stack_top_ - stack_bottom_, &local, pthread_self());
+ stack_top_ - stack_bottom_, &local);
}
CHECK(AddrIsInMem(stack_bottom_));