forked from OSchip/llvm-project
Use LLVM_DELETED_FUNCTION in place of 'DO NOT IMPLEMENT' comments.
llvm-svn: 163974
This commit is contained in:
parent
2ed23ce767
commit
a60c0f1163
|
@ -197,7 +197,7 @@ namespace {
|
|||
/// @brief A class for maintaining the slot number definition
|
||||
/// as a placeholder for the actual definition for forward constants defs.
|
||||
class ConstantPlaceHolder : public ConstantExpr {
|
||||
void operator=(const ConstantPlaceHolder &); // DO NOT IMPLEMENT
|
||||
void operator=(const ConstantPlaceHolder &) LLVM_DELETED_FUNCTION;
|
||||
public:
|
||||
// allocate space for exactly one operand
|
||||
void *operator new(size_t s) {
|
||||
|
|
|
@ -78,9 +78,9 @@ private:
|
|||
|
||||
unsigned FirstFuncConstantID;
|
||||
unsigned FirstInstID;
|
||||
|
||||
ValueEnumerator(const ValueEnumerator &); // DO NOT IMPLEMENT
|
||||
void operator=(const ValueEnumerator &); // DO NOT IMPLEMENT
|
||||
|
||||
ValueEnumerator(const ValueEnumerator &) LLVM_DELETED_FUNCTION;
|
||||
void operator=(const ValueEnumerator &) LLVM_DELETED_FUNCTION;
|
||||
public:
|
||||
ValueEnumerator(const Module *M);
|
||||
|
||||
|
|
|
@ -237,8 +237,8 @@ private:
|
|||
#endif
|
||||
};
|
||||
|
||||
DwarfAccelTable(const DwarfAccelTable&); // DO NOT IMPLEMENT
|
||||
void operator=(const DwarfAccelTable&); // DO NOT IMPLEMENT
|
||||
DwarfAccelTable(const DwarfAccelTable&) LLVM_DELETED_FUNCTION;
|
||||
void operator=(const DwarfAccelTable&) LLVM_DELETED_FUNCTION;
|
||||
|
||||
// Internal Functions
|
||||
void EmitHeader(AsmPrinter *);
|
||||
|
|
|
@ -178,8 +178,8 @@ public:
|
|||
bool checkLoopInterference(MachineLoopRange*);
|
||||
|
||||
private:
|
||||
Query(const Query&); // DO NOT IMPLEMENT
|
||||
void operator=(const Query&); // DO NOT IMPLEMENT
|
||||
Query(const Query&) LLVM_DELETED_FUNCTION;
|
||||
void operator=(const Query&) LLVM_DELETED_FUNCTION;
|
||||
};
|
||||
|
||||
// Array of LiveIntervalUnions.
|
||||
|
|
|
@ -63,8 +63,8 @@ namespace llvm {
|
|||
/// createSpillSlot - Allocate a spill slot for RC from MFI.
|
||||
unsigned createSpillSlot(const TargetRegisterClass *RC);
|
||||
|
||||
VirtRegMap(const VirtRegMap&); // DO NOT IMPLEMENT
|
||||
void operator=(const VirtRegMap&); // DO NOT IMPLEMENT
|
||||
VirtRegMap(const VirtRegMap&) LLVM_DELETED_FUNCTION;
|
||||
void operator=(const VirtRegMap&) LLVM_DELETED_FUNCTION;
|
||||
|
||||
public:
|
||||
static char ID;
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/Support/StreamableMemoryObject.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
#include <cassert>
|
||||
#include <cstring>
|
||||
|
||||
|
@ -49,8 +50,8 @@ private:
|
|||
return static_cast<ptrdiff_t>(address) == LastChar - FirstChar;
|
||||
}
|
||||
|
||||
RawMemoryObject(const RawMemoryObject&); // DO NOT IMPLEMENT
|
||||
void operator=(const RawMemoryObject&); // DO NOT IMPLEMENT
|
||||
RawMemoryObject(const RawMemoryObject&) LLVM_DELETED_FUNCTION;
|
||||
void operator=(const RawMemoryObject&) LLVM_DELETED_FUNCTION;
|
||||
};
|
||||
|
||||
int RawMemoryObject::readByte(uint64_t address, uint8_t* ptr) const {
|
||||
|
|
|
@ -35,8 +35,8 @@ STATISTIC(MCNumCPRelocations, "Number of constant pool relocations created.");
|
|||
|
||||
namespace {
|
||||
class ARMMCCodeEmitter : public MCCodeEmitter {
|
||||
ARMMCCodeEmitter(const ARMMCCodeEmitter &); // DO NOT IMPLEMENT
|
||||
void operator=(const ARMMCCodeEmitter &); // DO NOT IMPLEMENT
|
||||
ARMMCCodeEmitter(const ARMMCCodeEmitter &) LLVM_DELETED_FUNCTION;
|
||||
void operator=(const ARMMCCodeEmitter &) LLVM_DELETED_FUNCTION;
|
||||
const MCInstrInfo &MCII;
|
||||
const MCSubtargetInfo &STI;
|
||||
const MCContext &CTX;
|
||||
|
|
|
@ -29,8 +29,8 @@ STATISTIC(MCNumEmitted, "Number of MC instructions emitted");
|
|||
|
||||
namespace {
|
||||
class MBlazeMCCodeEmitter : public MCCodeEmitter {
|
||||
MBlazeMCCodeEmitter(const MBlazeMCCodeEmitter &); // DO NOT IMPLEMENT
|
||||
void operator=(const MBlazeMCCodeEmitter &); // DO NOT IMPLEMENT
|
||||
MBlazeMCCodeEmitter(const MBlazeMCCodeEmitter &) LLVM_DELETED_FUNCTION;
|
||||
void operator=(const MBlazeMCCodeEmitter &) LLVM_DELETED_FUNCTION;
|
||||
const MCInstrInfo &MCII;
|
||||
|
||||
public:
|
||||
|
|
|
@ -25,9 +25,9 @@ STATISTIC(MCNumEmitted, "Number of MC instructions emitted");
|
|||
|
||||
namespace {
|
||||
class PPCMCCodeEmitter : public MCCodeEmitter {
|
||||
PPCMCCodeEmitter(const PPCMCCodeEmitter &); // DO NOT IMPLEMENT
|
||||
void operator=(const PPCMCCodeEmitter &); // DO NOT IMPLEMENT
|
||||
|
||||
PPCMCCodeEmitter(const PPCMCCodeEmitter &) LLVM_DELETED_FUNCTION;
|
||||
void operator=(const PPCMCCodeEmitter &) LLVM_DELETED_FUNCTION;
|
||||
|
||||
public:
|
||||
PPCMCCodeEmitter(const MCInstrInfo &mcii, const MCSubtargetInfo &sti,
|
||||
MCContext &ctx) {
|
||||
|
|
|
@ -28,8 +28,8 @@ using namespace llvm;
|
|||
|
||||
namespace {
|
||||
class X86MCCodeEmitter : public MCCodeEmitter {
|
||||
X86MCCodeEmitter(const X86MCCodeEmitter &); // DO NOT IMPLEMENT
|
||||
void operator=(const X86MCCodeEmitter &); // DO NOT IMPLEMENT
|
||||
X86MCCodeEmitter(const X86MCCodeEmitter &) LLVM_DELETED_FUNCTION;
|
||||
void operator=(const X86MCCodeEmitter &) LLVM_DELETED_FUNCTION;
|
||||
const MCInstrInfo &MCII;
|
||||
const MCSubtargetInfo &STI;
|
||||
MCContext &Ctx;
|
||||
|
|
|
@ -26,8 +26,8 @@ class LLVM_LIBRARY_VISIBILITY InstCombineWorklist {
|
|||
SmallVector<Instruction*, 256> Worklist;
|
||||
DenseMap<Instruction*, unsigned> WorklistMap;
|
||||
|
||||
void operator=(const InstCombineWorklist&RHS); // DO NOT IMPLEMENT
|
||||
InstCombineWorklist(const InstCombineWorklist&); // DO NOT IMPLEMENT
|
||||
void operator=(const InstCombineWorklist&RHS) LLVM_DELETED_FUNCTION;
|
||||
InstCombineWorklist(const InstCombineWorklist&) LLVM_DELETED_FUNCTION;
|
||||
public:
|
||||
InstCombineWorklist() {}
|
||||
|
||||
|
|
|
@ -274,7 +274,8 @@ private:
|
|||
CallScope(*availableCalls) {}
|
||||
|
||||
private:
|
||||
NodeScope(const NodeScope&); // DO NOT IMPLEMENT
|
||||
NodeScope(const NodeScope&) LLVM_DELETED_FUNCTION;
|
||||
void operator=(const NodeScope&) LLVM_DELETED_FUNCTION;
|
||||
|
||||
ScopedHTType::ScopeTy Scope;
|
||||
LoadHTType::ScopeTy LoadScope;
|
||||
|
@ -313,7 +314,8 @@ private:
|
|||
void process() { Processed = true; }
|
||||
|
||||
private:
|
||||
StackNode(const StackNode&); // DO NOT IMPLEMENT
|
||||
StackNode(const StackNode&) LLVM_DELETED_FUNCTION;
|
||||
void operator=(const StackNode&) LLVM_DELETED_FUNCTION;
|
||||
|
||||
// Members.
|
||||
unsigned CurrentGeneration;
|
||||
|
|
|
@ -159,8 +159,8 @@ static void PrintLLVMName(raw_ostream &OS, const Value *V) {
|
|||
/// TypePrinting - Type printing machinery.
|
||||
namespace {
|
||||
class TypePrinting {
|
||||
TypePrinting(const TypePrinting &); // DO NOT IMPLEMENT
|
||||
void operator=(const TypePrinting&); // DO NOT IMPLEMENT
|
||||
TypePrinting(const TypePrinting &) LLVM_DELETED_FUNCTION;
|
||||
void operator=(const TypePrinting&) LLVM_DELETED_FUNCTION;
|
||||
public:
|
||||
|
||||
/// NamedTypes - The named types that are used by the current module.
|
||||
|
@ -398,8 +398,8 @@ private:
|
|||
/// Add all of the functions arguments, basic blocks, and instructions.
|
||||
void processFunction();
|
||||
|
||||
SlotTracker(const SlotTracker &); // DO NOT IMPLEMENT
|
||||
void operator=(const SlotTracker &); // DO NOT IMPLEMENT
|
||||
SlotTracker(const SlotTracker &) LLVM_DELETED_FUNCTION;
|
||||
void operator=(const SlotTracker &) LLVM_DELETED_FUNCTION;
|
||||
};
|
||||
|
||||
} // end anonymous namespace
|
||||
|
|
|
@ -33,7 +33,7 @@ struct ConstantTraits;
|
|||
/// behind the scenes to implement unary constant exprs.
|
||||
class UnaryConstantExpr : public ConstantExpr {
|
||||
virtual void anchor();
|
||||
void *operator new(size_t, unsigned); // DO NOT IMPLEMENT
|
||||
void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
|
||||
public:
|
||||
// allocate space for exactly one operand
|
||||
void *operator new(size_t s) {
|
||||
|
@ -50,7 +50,7 @@ public:
|
|||
/// behind the scenes to implement binary constant exprs.
|
||||
class BinaryConstantExpr : public ConstantExpr {
|
||||
virtual void anchor();
|
||||
void *operator new(size_t, unsigned); // DO NOT IMPLEMENT
|
||||
void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
|
||||
public:
|
||||
// allocate space for exactly two operands
|
||||
void *operator new(size_t s) {
|
||||
|
@ -71,7 +71,7 @@ public:
|
|||
/// behind the scenes to implement select constant exprs.
|
||||
class SelectConstantExpr : public ConstantExpr {
|
||||
virtual void anchor();
|
||||
void *operator new(size_t, unsigned); // DO NOT IMPLEMENT
|
||||
void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
|
||||
public:
|
||||
// allocate space for exactly three operands
|
||||
void *operator new(size_t s) {
|
||||
|
@ -92,7 +92,7 @@ public:
|
|||
/// extractelement constant exprs.
|
||||
class ExtractElementConstantExpr : public ConstantExpr {
|
||||
virtual void anchor();
|
||||
void *operator new(size_t, unsigned); // DO NOT IMPLEMENT
|
||||
void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
|
||||
public:
|
||||
// allocate space for exactly two operands
|
||||
void *operator new(size_t s) {
|
||||
|
@ -113,7 +113,7 @@ public:
|
|||
/// insertelement constant exprs.
|
||||
class InsertElementConstantExpr : public ConstantExpr {
|
||||
virtual void anchor();
|
||||
void *operator new(size_t, unsigned); // DO NOT IMPLEMENT
|
||||
void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
|
||||
public:
|
||||
// allocate space for exactly three operands
|
||||
void *operator new(size_t s) {
|
||||
|
@ -135,7 +135,7 @@ public:
|
|||
/// shufflevector constant exprs.
|
||||
class ShuffleVectorConstantExpr : public ConstantExpr {
|
||||
virtual void anchor();
|
||||
void *operator new(size_t, unsigned); // DO NOT IMPLEMENT
|
||||
void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
|
||||
public:
|
||||
// allocate space for exactly three operands
|
||||
void *operator new(size_t s) {
|
||||
|
@ -160,7 +160,7 @@ public:
|
|||
/// extractvalue constant exprs.
|
||||
class ExtractValueConstantExpr : public ConstantExpr {
|
||||
virtual void anchor();
|
||||
void *operator new(size_t, unsigned); // DO NOT IMPLEMENT
|
||||
void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
|
||||
public:
|
||||
// allocate space for exactly one operand
|
||||
void *operator new(size_t s) {
|
||||
|
@ -186,7 +186,7 @@ public:
|
|||
/// insertvalue constant exprs.
|
||||
class InsertValueConstantExpr : public ConstantExpr {
|
||||
virtual void anchor();
|
||||
void *operator new(size_t, unsigned); // DO NOT IMPLEMENT
|
||||
void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
|
||||
public:
|
||||
// allocate space for exactly one operand
|
||||
void *operator new(size_t s) {
|
||||
|
@ -234,7 +234,7 @@ public:
|
|||
// needed in order to store the predicate value for these instructions.
|
||||
class CompareConstantExpr : public ConstantExpr {
|
||||
virtual void anchor();
|
||||
void *operator new(size_t, unsigned); // DO NOT IMPLEMENT
|
||||
void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
|
||||
public:
|
||||
// allocate space for exactly two operands
|
||||
void *operator new(size_t s) {
|
||||
|
|
Loading…
Reference in New Issue