llvm.org GIT mirror llvm / c2945e4
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 Craig Topper 7 years ago
8 changed file(s) with 20 addition(s) and 21 deletion(s). Raw diff Collapse all Expand all
526526 /// @name Hidden
527527 /// @{
528528 private:
529 Archive(); ///< Do not implement
530 Archive(const Archive&); ///< Do not implement
531 Archive& operator=(const Archive&); ///< Do not implement
529 Archive() LLVM_DELETED_FUNCTION;
530 Archive(const Archive&) LLVM_DELETED_FUNCTION;
531 Archive& operator=(const Archive&) LLVM_DELETED_FUNCTION;
532532 /// @}
533533 };
534534
2828 // FIXME: As the RuntimeDyld fills out, additional routines will be needed
2929 // for the varying types of objects to be allocated.
3030 class RTDyldMemoryManager {
31 RTDyldMemoryManager(const RTDyldMemoryManager&); // DO NOT IMPLEMENT
32 void operator=(const RTDyldMemoryManager&); // DO NOT IMPLEMENT
31 RTDyldMemoryManager(const RTDyldMemoryManager&) LLVM_DELETED_FUNCTION;
32 void operator=(const RTDyldMemoryManager&) LLVM_DELETED_FUNCTION;
3333 public:
3434 RTDyldMemoryManager() {}
3535 virtual ~RTDyldMemoryManager();
4949 };
5050
5151 class RuntimeDyld {
52 RuntimeDyld(const RuntimeDyld &); // DO NOT IMPLEMENT
53 void operator=(const RuntimeDyld &); // DO NOT IMPLEMENT
52 RuntimeDyld(const RuntimeDyld &) LLVM_DELETED_FUNCTION;
53 void operator=(const RuntimeDyld &) LLVM_DELETED_FUNCTION;
5454
5555 // RuntimeDyldImpl is the actual class. RuntimeDyld is just the public
5656 // interface.
3333
3434 class GlobalVariable : public GlobalValue, public ilist_node {
3535 friend class SymbolTableListTraits;
36 void *operator new(size_t, unsigned); // Do not implement
37 void operator=(const GlobalVariable &); // Do not implement
38 GlobalVariable(const GlobalVariable &); // Do not implement
36 void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
37 void operator=(const GlobalVariable &) LLVM_DELETED_FUNCTION;
38 GlobalVariable(const GlobalVariable &) LLVM_DELETED_FUNCTION;
3939
4040 void setParent(Module *parent);
4141
2727 class SDNodeOrdering {
2828 DenseMap OrderMap;
2929
30 void operator=(const SDNodeOrdering&); // Do not implement.
31 SDNodeOrdering(const SDNodeOrdering&); // Do not implement.
30 void operator=(const SDNodeOrdering&) LLVM_DELETED_FUNCTION;
31 SDNodeOrdering(const SDNodeOrdering&) LLVM_DELETED_FUNCTION;
3232 public:
3333 SDNodeOrdering() {}
3434
3131 OwningPtr Aranges;
3232 OwningPtr Line;
3333
34 DWARFContext(DWARFContext &); // = delete
35 DWARFContext &operator=(DWARFContext &); // = delete
34 DWARFContext(DWARFContext &) LLVM_DELETED_FUNCTION;
35 DWARFContext &operator=(DWARFContext &) LLVM_DELETED_FUNCTION;
3636
3737 /// Read compile units from the debug_info section and store them in CUs.
3838 void parseCompileUnits();
1818 namespace llvm {
1919
2020 class ObjectImage {
21 ObjectImage(); // = delete
22 ObjectImage(const ObjectImage &other); // = delete
21 ObjectImage() LLVM_DELETED_FUNCTION;
22 ObjectImage(const ObjectImage &other) LLVM_DELETED_FUNCTION;
2323 protected:
2424 object::ObjectFile *ObjFile;
2525
11201120 bool relatedSelect(const SelectInst *A, const Value *B);
11211121 bool relatedPHI(const PHINode *A, const Value *B);
11221122
1123 // Do not implement.
1124 void operator=(const ProvenanceAnalysis &);
1125 ProvenanceAnalysis(const ProvenanceAnalysis &);
1123 void operator=(const ProvenanceAnalysis &) LLVM_DELETED_FUNCTION;
1124 ProvenanceAnalysis(const ProvenanceAnalysis &) LLVM_DELETED_FUNCTION;
11261125
11271126 public:
11281127 ProvenanceAnalysis() {}
124124 sys::cas_flag RefCount;
125125
126126 // AttributesList is uniqued, these should not be publicly available.
127 void operator=(const AttributeListImpl &); // Do not implement
128 AttributeListImpl(const AttributeListImpl &); // Do not implement
127 void operator=(const AttributeListImpl &) LLVM_DELETED_FUNCTION;
128 AttributeListImpl(const AttributeListImpl &) LLVM_DELETED_FUNCTION;
129129 ~AttributeListImpl(); // Private implementation
130130 public:
131131 SmallVector Attrs;