summaryrefslogtreecommitdiff
path: root/include/llvm/GlobalVariable.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-09-18 02:01:41 +0000
committerCraig Topper <craig.topper@gmail.com>2012-09-18 02:01:41 +0000
commitc2945e44d5d485ce080a09900fbd5245e01165fc (patch)
treee3548b3706d6bc59bdb779fe2460e8cf06f82579 /include/llvm/GlobalVariable.h
parentd10eab0a95dcfff6390cc73b50ca07fd8b98b0bc (diff)
downloadllvm-c2945e44d5d485ce080a09900fbd5245e01165fc.tar.gz
llvm-c2945e44d5d485ce080a09900fbd5245e01165fc.tar.bz2
llvm-c2945e44d5d485ce080a09900fbd5245e01165fc.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@164090 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/GlobalVariable.h')
-rw-r--r--include/llvm/GlobalVariable.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/GlobalVariable.h b/include/llvm/GlobalVariable.h
index 99b7a73b35..27a2ea7fb9 100644
--- a/include/llvm/GlobalVariable.h
+++ b/include/llvm/GlobalVariable.h
@@ -34,9 +34,9 @@ template<typename ValueSubClass, typename ItemParentClass>
class GlobalVariable : public GlobalValue, public ilist_node<GlobalVariable> {
friend class SymbolTableListTraits<GlobalVariable, Module>;
- void *operator new(size_t, unsigned); // Do not implement
- void operator=(const GlobalVariable &); // Do not implement
- GlobalVariable(const GlobalVariable &); // Do not implement
+ void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
+ void operator=(const GlobalVariable &) LLVM_DELETED_FUNCTION;
+ GlobalVariable(const GlobalVariable &) LLVM_DELETED_FUNCTION;
void setParent(Module *parent);