[TSan] Initialize libdispatch interceptors if necessary
authorJulian Lettner <jlettner@apple.com>
Fri, 8 Mar 2019 19:52:45 +0000 (19:52 +0000)
committerJulian Lettner <jlettner@apple.com>
Fri, 8 Mar 2019 19:52:45 +0000 (19:52 +0000)
commit9e18875ba30ce98f1cfb5c266ddfe96d994239e5
tree1868ab352add70dff094af7e192ef6ad877fbd26
parent782ac933b537611354f77de5903791eb48a55fe4
[TSan] Initialize libdispatch interceptors if necessary

On Linux (and other non-Darwin platforms) we need to initialize
interceptors. Since tsan_libdispatch.cc is compiled optionally, add a
weak default implementation of `InitializeLibdispatchInterceptors`.

Reviewed By: dvyukov

Differential Revision: https://reviews.llvm.org/D59113

llvm-svn: 355717
compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
compiler-rt/lib/tsan/rtl/tsan_libdispatch.cc