[Support] Re-introduce the RWMutexImpl for macOS < 10.12
authorJonas Devlieghere <jonas@devlieghere.com>
Thu, 15 Aug 2019 22:19:38 +0000 (22:19 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Thu, 15 Aug 2019 22:19:38 +0000 (22:19 +0000)
commit563e25f338771638dcba905e2fc1101c19ad18f5
treecadf9ba661368911d39e6bab5c4872d652023115
parent2fb4e754c64a023c16edcd69f89234300477d2f0
[Support] Re-introduce the RWMutexImpl for macOS < 10.12

In r369018, Benjamin replaced the custom RWMutex implementation with
their C++14 counterpart. Unfortunately, std::shared_timed_mutex is only
available on macOS 10.12 and later. This prevents LLVM from compiling
even on newer versions of the OS when you have an older deployment
target. This patch reintroduced the old RWMutexImpl but guards it by the
macOS availability macro.

Differential revision: https://reviews.llvm.org/rL369018

llvm-svn: 369056
llvm/include/llvm/Support/RWMutex.h