* gcc-interface/trans.c (Subprogram_Body_to_gnu): Initialize locus.
[official-gcc.git] / libsanitizer / lsan / lsan_linux.cc
blobaa6445a98777e5b1ecad770bc2b0cbaeeaa67216
1 //=-- lsan_linux.cc -------------------------------------------------------===//
2 //
3 // This file is distributed under the University of Illinois Open Source
4 // License. See LICENSE.TXT for details.
5 //
6 //===----------------------------------------------------------------------===//
7 //
8 // This file is a part of LeakSanitizer. Linux-specific code.
9 //
10 //===----------------------------------------------------------------------===//
12 #include "sanitizer_common/sanitizer_platform.h"
14 #if SANITIZER_LINUX
16 #include "lsan_allocator.h"
18 namespace __lsan {
20 static THREADLOCAL u32 current_thread_tid = kInvalidTid;
21 u32 GetCurrentThread() { return current_thread_tid; }
22 void SetCurrentThread(u32 tid) { current_thread_tid = tid; }
24 static THREADLOCAL AllocatorCache allocator_cache;
25 AllocatorCache *GetAllocatorCache() { return &allocator_cache; }
27 void ReplaceSystemMalloc() {}
29 } // namespace __lsan
31 #endif // SANITIZER_LINUX