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
This commit is contained in:
Craig Topper
2012-09-16 21:37:56 +00:00
parent fbb13471ed
commit f630e49efc
18 changed files with 59 additions and 48 deletions

View File

@ -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;
/// @}
};