diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-09-16 21:37:56 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-09-16 21:37:56 +0000 |
commit | f630e49efc7bf3f1716b6daab3c2cc11a908754a (patch) | |
tree | 0d75be23a098a5db30544eb3bd5991f053f3005f /include/llvm/Instruction.h | |
parent | fbb13471ed99ab8fdc3dbadb091ee5e2295b7b26 (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/Instruction.h')
-rw-r--r-- | include/llvm/Instruction.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 5512dcc9e6..c85eda28f4 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -28,8 +28,8 @@ template<typename ValueSubClass, typename ItemParentClass> class SymbolTableListTraits; class Instruction : public User, public ilist_node<Instruction> { - void operator=(const Instruction &); // Do not implement - Instruction(const Instruction &); // Do not implement + void operator=(const Instruction &) LLVM_DELETED_FUNCTION; + Instruction(const Instruction &) LLVM_DELETED_FUNCTION; BasicBlock *Parent; DebugLoc DbgLoc; // 'dbg' Metadata cache. |