mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-29 07:39:27 +00:00
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
This commit is contained in:
parent
d10eab0a95
commit
c2945e44d5
@ -527,9 +527,9 @@ class Archive {
|
|||||||
/// @name Hidden
|
/// @name Hidden
|
||||||
/// @{
|
/// @{
|
||||||
private:
|
private:
|
||||||
Archive(); ///< Do not implement
|
Archive() LLVM_DELETED_FUNCTION;
|
||||||
Archive(const Archive&); ///< Do not implement
|
Archive(const Archive&) LLVM_DELETED_FUNCTION;
|
||||||
Archive& operator=(const Archive&); ///< Do not implement
|
Archive& operator=(const Archive&) LLVM_DELETED_FUNCTION;
|
||||||
/// @}
|
/// @}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -29,8 +29,8 @@ class MemoryBuffer;
|
|||||||
// FIXME: As the RuntimeDyld fills out, additional routines will be needed
|
// FIXME: As the RuntimeDyld fills out, additional routines will be needed
|
||||||
// for the varying types of objects to be allocated.
|
// for the varying types of objects to be allocated.
|
||||||
class RTDyldMemoryManager {
|
class RTDyldMemoryManager {
|
||||||
RTDyldMemoryManager(const RTDyldMemoryManager&); // DO NOT IMPLEMENT
|
RTDyldMemoryManager(const RTDyldMemoryManager&) LLVM_DELETED_FUNCTION;
|
||||||
void operator=(const RTDyldMemoryManager&); // DO NOT IMPLEMENT
|
void operator=(const RTDyldMemoryManager&) LLVM_DELETED_FUNCTION;
|
||||||
public:
|
public:
|
||||||
RTDyldMemoryManager() {}
|
RTDyldMemoryManager() {}
|
||||||
virtual ~RTDyldMemoryManager();
|
virtual ~RTDyldMemoryManager();
|
||||||
@ -50,8 +50,8 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
class RuntimeDyld {
|
class RuntimeDyld {
|
||||||
RuntimeDyld(const RuntimeDyld &); // DO NOT IMPLEMENT
|
RuntimeDyld(const RuntimeDyld &) LLVM_DELETED_FUNCTION;
|
||||||
void operator=(const RuntimeDyld &); // DO NOT IMPLEMENT
|
void operator=(const RuntimeDyld &) LLVM_DELETED_FUNCTION;
|
||||||
|
|
||||||
// RuntimeDyldImpl is the actual class. RuntimeDyld is just the public
|
// RuntimeDyldImpl is the actual class. RuntimeDyld is just the public
|
||||||
// interface.
|
// interface.
|
||||||
|
@ -34,9 +34,9 @@ template<typename ValueSubClass, typename ItemParentClass>
|
|||||||
|
|
||||||
class GlobalVariable : public GlobalValue, public ilist_node<GlobalVariable> {
|
class GlobalVariable : public GlobalValue, public ilist_node<GlobalVariable> {
|
||||||
friend class SymbolTableListTraits<GlobalVariable, Module>;
|
friend class SymbolTableListTraits<GlobalVariable, Module>;
|
||||||
void *operator new(size_t, unsigned); // Do not implement
|
void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
|
||||||
void operator=(const GlobalVariable &); // Do not implement
|
void operator=(const GlobalVariable &) LLVM_DELETED_FUNCTION;
|
||||||
GlobalVariable(const GlobalVariable &); // Do not implement
|
GlobalVariable(const GlobalVariable &) LLVM_DELETED_FUNCTION;
|
||||||
|
|
||||||
void setParent(Module *parent);
|
void setParent(Module *parent);
|
||||||
|
|
||||||
|
@ -28,8 +28,8 @@ class SDNode;
|
|||||||
class SDNodeOrdering {
|
class SDNodeOrdering {
|
||||||
DenseMap<const SDNode*, unsigned> OrderMap;
|
DenseMap<const SDNode*, unsigned> OrderMap;
|
||||||
|
|
||||||
void operator=(const SDNodeOrdering&); // Do not implement.
|
void operator=(const SDNodeOrdering&) LLVM_DELETED_FUNCTION;
|
||||||
SDNodeOrdering(const SDNodeOrdering&); // Do not implement.
|
SDNodeOrdering(const SDNodeOrdering&) LLVM_DELETED_FUNCTION;
|
||||||
public:
|
public:
|
||||||
SDNodeOrdering() {}
|
SDNodeOrdering() {}
|
||||||
|
|
||||||
|
@ -32,8 +32,8 @@ class DWARFContext : public DIContext {
|
|||||||
OwningPtr<DWARFDebugAranges> Aranges;
|
OwningPtr<DWARFDebugAranges> Aranges;
|
||||||
OwningPtr<DWARFDebugLine> Line;
|
OwningPtr<DWARFDebugLine> Line;
|
||||||
|
|
||||||
DWARFContext(DWARFContext &); // = delete
|
DWARFContext(DWARFContext &) LLVM_DELETED_FUNCTION;
|
||||||
DWARFContext &operator=(DWARFContext &); // = delete
|
DWARFContext &operator=(DWARFContext &) LLVM_DELETED_FUNCTION;
|
||||||
|
|
||||||
/// Read compile units from the debug_info section and store them in CUs.
|
/// Read compile units from the debug_info section and store them in CUs.
|
||||||
void parseCompileUnits();
|
void parseCompileUnits();
|
||||||
|
@ -19,8 +19,8 @@
|
|||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
class ObjectImage {
|
class ObjectImage {
|
||||||
ObjectImage(); // = delete
|
ObjectImage() LLVM_DELETED_FUNCTION;
|
||||||
ObjectImage(const ObjectImage &other); // = delete
|
ObjectImage(const ObjectImage &other) LLVM_DELETED_FUNCTION;
|
||||||
protected:
|
protected:
|
||||||
object::ObjectFile *ObjFile;
|
object::ObjectFile *ObjFile;
|
||||||
|
|
||||||
|
@ -1121,9 +1121,8 @@ namespace {
|
|||||||
bool relatedSelect(const SelectInst *A, const Value *B);
|
bool relatedSelect(const SelectInst *A, const Value *B);
|
||||||
bool relatedPHI(const PHINode *A, const Value *B);
|
bool relatedPHI(const PHINode *A, const Value *B);
|
||||||
|
|
||||||
// Do not implement.
|
void operator=(const ProvenanceAnalysis &) LLVM_DELETED_FUNCTION;
|
||||||
void operator=(const ProvenanceAnalysis &);
|
ProvenanceAnalysis(const ProvenanceAnalysis &) LLVM_DELETED_FUNCTION;
|
||||||
ProvenanceAnalysis(const ProvenanceAnalysis &);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ProvenanceAnalysis() {}
|
ProvenanceAnalysis() {}
|
||||||
|
@ -125,8 +125,8 @@ class AttributeListImpl : public FoldingSetNode {
|
|||||||
sys::cas_flag RefCount;
|
sys::cas_flag RefCount;
|
||||||
|
|
||||||
// AttributesList is uniqued, these should not be publicly available.
|
// AttributesList is uniqued, these should not be publicly available.
|
||||||
void operator=(const AttributeListImpl &); // Do not implement
|
void operator=(const AttributeListImpl &) LLVM_DELETED_FUNCTION;
|
||||||
AttributeListImpl(const AttributeListImpl &); // Do not implement
|
AttributeListImpl(const AttributeListImpl &) LLVM_DELETED_FUNCTION;
|
||||||
~AttributeListImpl(); // Private implementation
|
~AttributeListImpl(); // Private implementation
|
||||||
public:
|
public:
|
||||||
SmallVector<AttributeWithIndex, 4> Attrs;
|
SmallVector<AttributeWithIndex, 4> Attrs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user