[asan] Android does not have TLS

llvm-svn: 190669
This commit is contained in:
Kostya Serebryany 2013-09-13 08:58:22 +00:00
parent c9e95ad0db
commit 3bee8efc95
1 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ NOINLINE void FakeStack::GC(uptr real_stack) {
needs_gc_ = false;
}
#if SANITIZER_LINUX
#if SANITIZER_LINUX && !SANITIZER_ANDROID
static THREADLOCAL FakeStack *fake_stack_tls;
FakeStack *GetTLSFakeStack() {
@ -135,7 +135,7 @@ void SetTLSFakeStack(FakeStack *fs) {
#else
FakeStack *GetTLSFakeStack() { return 0; }
void SetTLSFakeStack(FakeStack *fs) { }
#endif // SANITIZER_LINUX
#endif // SANITIZER_LINUX && !SANITIZER_ANDROID
static FakeStack *GetFakeStack() {
AsanThread *t = GetCurrentThread();