aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/Mutex.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-09-16 21:37:56 +0000
committerCraig Topper <craig.topper@gmail.com>2012-09-16 21:37:56 +0000
commitf630e49efc7bf3f1716b6daab3c2cc11a908754a (patch)
tree0d75be23a098a5db30544eb3bd5991f053f3005f /include/llvm/Support/Mutex.h
parentfbb13471ed99ab8fdc3dbadb091ee5e2295b7b26 (diff)
Use LLVM_DELETED_FUNCTION for copy constructors and copy assignment operators that aren't implemented.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164006 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Mutex.h')
-rw-r--r--include/llvm/Support/Mutex.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Support/Mutex.h b/include/llvm/Support/Mutex.h
index 42ea63060f..6abc533d28 100644
--- a/include/llvm/Support/Mutex.h
+++ b/include/llvm/Support/Mutex.h
@@ -14,6 +14,7 @@
#ifndef LLVM_SYSTEM_MUTEX_H
#define LLVM_SYSTEM_MUTEX_H
+#include "llvm/Support/Compiler.h"
#include "llvm/Support/Threading.h"
#include <cassert>
@@ -75,8 +76,8 @@ namespace llvm
/// @name Do Not Implement
/// @{
private:
- MutexImpl(const MutexImpl & original);
- void operator=(const MutexImpl &);
+ MutexImpl(const MutexImpl &) LLVM_DELETED_FUNCTION;
+ void operator=(const MutexImpl &) LLVM_DELETED_FUNCTION;
/// @}
};