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