diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-04-05 20:45:04 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-04-05 20:45:04 +0000 |
| commit | 91d3cfed785b46723ebbf8197f70aa0f854c05d7 (patch) | |
| tree | 94f71306bb51cc3e1cadab7d71e0de2d51328b89 /llvm/lib/Support/Mutex.cpp | |
| parent | 27e95f7c7b22117e5f36d1ef874dac9b48555f18 (diff) | |
| download | bcm5719-llvm-91d3cfed785b46723ebbf8197f70aa0f854c05d7.tar.gz bcm5719-llvm-91d3cfed785b46723ebbf8197f70aa0f854c05d7.zip | |
Revert "Fix Clang-tidy modernize-deprecated-headers warnings in remaining files; other minor fixes."
This reverts commit r265454 since it broke the build. E.g.:
http://lab.llvm.org:8080/green/job/clang-stage1-cmake-RA-incremental_build/22413/
llvm-svn: 265459
Diffstat (limited to 'llvm/lib/Support/Mutex.cpp')
| -rw-r--r-- | llvm/lib/Support/Mutex.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/llvm/lib/Support/Mutex.cpp b/llvm/lib/Support/Mutex.cpp index db30c73de51..c8d3844d0c9 100644 --- a/llvm/lib/Support/Mutex.cpp +++ b/llvm/lib/Support/Mutex.cpp @@ -22,26 +22,22 @@ #if !defined(LLVM_ENABLE_THREADS) || LLVM_ENABLE_THREADS == 0 // Define all methods as no-ops if threading is explicitly disabled namespace llvm { - using namespace sys; - MutexImpl::MutexImpl( bool recursive) { } MutexImpl::~MutexImpl() { } bool MutexImpl::acquire() { return true; } bool MutexImpl::release() { return true; } bool MutexImpl::tryacquire() { return true; } - -} // end namespace llvm +} #else #if defined(HAVE_PTHREAD_H) && defined(HAVE_PTHREAD_MUTEX_LOCK) #include <cassert> -#include <cstdlib> #include <pthread.h> +#include <stdlib.h> namespace llvm { - using namespace sys; // Construct a Mutex using pthread calls @@ -114,7 +110,7 @@ MutexImpl::tryacquire() return errorcode == 0; } -} // end namespace llvm +} #elif defined(LLVM_ON_UNIX) #include "Unix/Mutex.inc" |

