mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-04 02:24:29 +00:00
Removing LLVM_DELETED_FUNCTION, as MSVC 2012 was the last reason for requiring the macro. NFC; LLVM edition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229340 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -26,8 +26,8 @@ namespace llvm {
|
||||
/// @brief Guard a section of code with a Mutex.
|
||||
class MutexGuard {
|
||||
sys::Mutex &M;
|
||||
MutexGuard(const MutexGuard &) LLVM_DELETED_FUNCTION;
|
||||
void operator=(const MutexGuard &) LLVM_DELETED_FUNCTION;
|
||||
MutexGuard(const MutexGuard &) = delete;
|
||||
void operator=(const MutexGuard &) = delete;
|
||||
public:
|
||||
MutexGuard(sys::Mutex &m) : M(m) { M.lock(); }
|
||||
~MutexGuard() { M.unlock(); }
|
||||
|
Reference in New Issue
Block a user