diff options
| author | Craig Topper <craig.topper@gmail.com> | 2012-09-18 02:01:41 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2012-09-18 02:01:41 +0000 |
| commit | b1d83e8c72187afec031eec7cc54d4b73b781d16 (patch) | |
| tree | 8282fff2850bb0fd941f60c56accb967a7d7528b /llvm/lib | |
| parent | 90ae8f84421e24be66a1dd90a79ccdf54ee44d1d (diff) | |
| download | bcm5719-llvm-b1d83e8c72187afec031eec7cc54d4b73b781d16.tar.gz bcm5719-llvm-b1d83e8c72187afec031eec7cc54d4b73b781d16.zip | |
Mark unimplemented copy constructors and copy assignment operators as LLVM_DELETED_FUNCTION.
llvm-svn: 164090
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SDNodeOrdering.h | 4 | ||||
| -rw-r--r-- | llvm/lib/DebugInfo/DWARFContext.h | 4 | ||||
| -rw-r--r-- | llvm/lib/ExecutionEngine/RuntimeDyld/ObjectImage.h | 4 | ||||
| -rw-r--r-- | llvm/lib/Transforms/Scalar/ObjCARC.cpp | 5 | ||||
| -rw-r--r-- | llvm/lib/VMCore/Attributes.cpp | 4 |
5 files changed, 10 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SDNodeOrdering.h b/llvm/lib/CodeGen/SelectionDAG/SDNodeOrdering.h index f88b26d5c42..d2269f8accf 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SDNodeOrdering.h +++ b/llvm/lib/CodeGen/SelectionDAG/SDNodeOrdering.h @@ -28,8 +28,8 @@ class SDNode; class SDNodeOrdering { DenseMap<const SDNode*, unsigned> OrderMap; - void operator=(const SDNodeOrdering&); // Do not implement. - SDNodeOrdering(const SDNodeOrdering&); // Do not implement. + void operator=(const SDNodeOrdering&) LLVM_DELETED_FUNCTION; + SDNodeOrdering(const SDNodeOrdering&) LLVM_DELETED_FUNCTION; public: SDNodeOrdering() {} diff --git a/llvm/lib/DebugInfo/DWARFContext.h b/llvm/lib/DebugInfo/DWARFContext.h index 76339979dd1..d10e8508709 100644 --- a/llvm/lib/DebugInfo/DWARFContext.h +++ b/llvm/lib/DebugInfo/DWARFContext.h @@ -32,8 +32,8 @@ class DWARFContext : public DIContext { OwningPtr<DWARFDebugAranges> Aranges; OwningPtr<DWARFDebugLine> Line; - DWARFContext(DWARFContext &); // = delete - DWARFContext &operator=(DWARFContext &); // = delete + DWARFContext(DWARFContext &) LLVM_DELETED_FUNCTION; + DWARFContext &operator=(DWARFContext &) LLVM_DELETED_FUNCTION; /// Read compile units from the debug_info section and store them in CUs. void parseCompileUnits(); diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/ObjectImage.h b/llvm/lib/ExecutionEngine/RuntimeDyld/ObjectImage.h index c3e3572f3bc..4fa5c1cfea3 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/ObjectImage.h +++ b/llvm/lib/ExecutionEngine/RuntimeDyld/ObjectImage.h @@ -19,8 +19,8 @@ namespace llvm { class ObjectImage { - ObjectImage(); // = delete - ObjectImage(const ObjectImage &other); // = delete + ObjectImage() LLVM_DELETED_FUNCTION; + ObjectImage(const ObjectImage &other) LLVM_DELETED_FUNCTION; protected: object::ObjectFile *ObjFile; diff --git a/llvm/lib/Transforms/Scalar/ObjCARC.cpp b/llvm/lib/Transforms/Scalar/ObjCARC.cpp index 9fd68e62445..d83b069b1c8 100644 --- a/llvm/lib/Transforms/Scalar/ObjCARC.cpp +++ b/llvm/lib/Transforms/Scalar/ObjCARC.cpp @@ -1121,9 +1121,8 @@ namespace { bool relatedSelect(const SelectInst *A, const Value *B); bool relatedPHI(const PHINode *A, const Value *B); - // Do not implement. - void operator=(const ProvenanceAnalysis &); - ProvenanceAnalysis(const ProvenanceAnalysis &); + void operator=(const ProvenanceAnalysis &) LLVM_DELETED_FUNCTION; + ProvenanceAnalysis(const ProvenanceAnalysis &) LLVM_DELETED_FUNCTION; public: ProvenanceAnalysis() {} diff --git a/llvm/lib/VMCore/Attributes.cpp b/llvm/lib/VMCore/Attributes.cpp index d466ac60b29..0458853b3f6 100644 --- a/llvm/lib/VMCore/Attributes.cpp +++ b/llvm/lib/VMCore/Attributes.cpp @@ -125,8 +125,8 @@ class AttributeListImpl : public FoldingSetNode { sys::cas_flag RefCount; // AttributesList is uniqued, these should not be publicly available. - void operator=(const AttributeListImpl &); // Do not implement - AttributeListImpl(const AttributeListImpl &); // Do not implement + void operator=(const AttributeListImpl &) LLVM_DELETED_FUNCTION; + AttributeListImpl(const AttributeListImpl &) LLVM_DELETED_FUNCTION; ~AttributeListImpl(); // Private implementation public: SmallVector<AttributeWithIndex, 4> Attrs; |

