summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/ilist.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-09-17 06:31:17 +0000
committerCraig Topper <craig.topper@gmail.com>2012-09-17 06:31:17 +0000
commitfc601db2ed899d800ea0a50f7ecf7de2a820cbc1 (patch)
tree76b49169e9ebb1bff5c2f651c1cddebfa7a7b22b /include/llvm/ADT/ilist.h
parent7ffafe4102ec4b8491a82e700076c85bd692ec84 (diff)
downloadllvm-fc601db2ed899d800ea0a50f7ecf7de2a820cbc1.tar.gz
llvm-fc601db2ed899d800ea0a50f7ecf7de2a820cbc1.tar.bz2
llvm-fc601db2ed899d800ea0a50f7ecf7de2a820cbc1.tar.xz
Mark unimplemented copy constructors and copy assignment operators as LLVM_DELETED_FUNCTION.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164014 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/ilist.h')
-rw-r--r--include/llvm/ADT/ilist.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/ADT/ilist.h b/include/llvm/ADT/ilist.h
index ba9864a98a..7f5cd17181 100644
--- a/include/llvm/ADT/ilist.h
+++ b/include/llvm/ADT/ilist.h
@@ -38,6 +38,7 @@
#ifndef LLVM_ADT_ILIST_H
#define LLVM_ADT_ILIST_H
+#include "llvm/Support/Compiler.h"
#include <algorithm>
#include <cassert>
#include <cstddef>
@@ -331,8 +332,8 @@ class iplist : public Traits {
// No fundamental reason why iplist can't be copyable, but the default
// copy/copy-assign won't do.
- iplist(const iplist &); // do not implement
- void operator=(const iplist &); // do not implement
+ iplist(const iplist &) LLVM_DELETED_FUNCTION;
+ void operator=(const iplist &) LLVM_DELETED_FUNCTION;
public:
typedef NodeTy *pointer;