//=-- lsan_linux.cc -------------------------------------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file is a part of LeakSanitizer. Linux-specific code.
//
//===----------------------------------------------------------------------===//

#if SANITIZER_LINUX

#include "lsan_allocator.h"

namespace __lsan {

static THREADLOCAL AllocatorCache allocator_cache;
AllocatorCache *GetAllocatorCache() { return &allocator_cache; }

} // namespace __lsan

#endif // SANITIZER_LINUX


//=-- lsan_linux.cc -------------------------------------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file is a part of LeakSanitizer. Linux-specific code.
//
//===----------------------------------------------------------------------===//

#include "sanitizer_common/sanitizer_platform.h"

#if SANITIZER_LINUX

#include "lsan_allocator.h"

namespace __lsan {

static THREADLOCAL AllocatorCache allocator_cache;
AllocatorCache *GetAllocatorCache() { return &allocator_cache; }

} // namespace __lsan

#endif // SANITIZER_LINUX

Fix missing sanitizer platform include
Fix missing sanitizer platform include

git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@298884 91177308-0d34-0410-b5e6-96231b3b80d8
