summaryrefslogtreecommitdiff
path: root/lib/lsan/lsan_linux.cc
diff options
context:
space:
mode:
authorFrancis Ricci <francisjricci@gmail.com>2017-04-11 20:05:02 +0000
committerFrancis Ricci <francisjricci@gmail.com>2017-04-11 20:05:02 +0000
commitef3c0d303156bf2dbc222a292e9785cb66535a33 (patch)
treeba4b02d656bb243cf4dbc49d7282e8f2c4cc25cd /lib/lsan/lsan_linux.cc
parent73b0c20fc41d4ef48b9b2e3edecb705c2f6aaf77 (diff)
Implement standalone lsan interceptors for OS X
Summary: Mimicks the existing tsan and asan implementations of Darwin interception. Reviewers: kubamracek, kcc, glider Subscribers: llvm-commits, mgorny Differential Revision: https://reviews.llvm.org/D31889 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@299979 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/lsan/lsan_linux.cc')
-rw-r--r--lib/lsan/lsan_linux.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/lsan/lsan_linux.cc b/lib/lsan/lsan_linux.cc
index a60f7413a..c9749c745 100644
--- a/lib/lsan/lsan_linux.cc
+++ b/lib/lsan/lsan_linux.cc
@@ -26,6 +26,8 @@ void SetCurrentThread(u32 tid) { current_thread_tid = tid; }
static THREADLOCAL AllocatorCache allocator_cache;
AllocatorCache *GetAllocatorCache() { return &allocator_cache; }
+void ReplaceSystemMalloc() {}
+
} // namespace __lsan
#endif // SANITIZER_LINUX