llvm.org GIT mirror llvm / a39058a
Use LLVM_DELETED_FUNCTION rather than '// do not implement' comments. Also removes some redundant DNI comments on function declarations already using the macro. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175466 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 7 years ago
10 changed file(s) with 18 addition(s) and 20 deletion(s). Raw diff Collapse all Expand all
299299 /* The definition of equality is not straightforward for floating point,
300300 so we won't use operator==. Use one of the following, or write
301301 whatever it is you really mean. */
302 // bool operator==(const APFloat &) const; // DO NOT IMPLEMENT
302 bool operator==(const APFloat &) const LLVM_DELETED_FUNCTION;
303303
304304 /* IEEE comparison with another floating point number (NaNs
305305 compare unordered, 0==-0). */
233233 pointer getNodePtrUnchecked() const { return NodePtr; }
234234 };
235235
236 // do not implement. this is to catch errors when people try to use
237 // them as random access iterators
236 // These are to catch errors when people try to use them as random access
237 // iterators.
238238 template
239 void operator-(int, ilist_iterator);
239 void operator-(int, ilist_iterator) LLVM_DELETED_FUNCTION;
240240 template
241 void operator-(ilist_iterator,int);
241 void operator-(ilist_iterator,int) LLVM_DELETED_FUNCTION;
242242
243243 template
244 void operator+(int, ilist_iterator);
244 void operator+(int, ilist_iterator) LLVM_DELETED_FUNCTION;
245245 template
246 void operator+(ilist_iterator,int);
246 void operator+(ilist_iterator,int) LLVM_DELETED_FUNCTION;
247247
248248 // operator!=/operator== - Allow mixed comparisons without dereferencing
249249 // the iterator, which could very likely be pointing to end().
243243 /// DependenceAnalysis - This class is the main dependence-analysis driver.
244244 ///
245245 class DependenceAnalysis : public FunctionPass {
246 void operator=(const DependenceAnalysis &); // do not implement
247 DependenceAnalysis(const DependenceAnalysis &); // do not implement
246 void operator=(const DependenceAnalysis &) LLVM_DELETED_FUNCTION;
247 DependenceAnalysis(const DependenceAnalysis &) LLVM_DELETED_FUNCTION;
248248 public:
249249 /// depends - Tests for a dependence between the Src and Dst instructions.
250250 /// Returns NULL if no dependence; otherwise, returns a Dependence (or a
3232 ///
3333 class Operator : public User {
3434 private:
35 // Do not implement any of these. The Operator class is intended to be used
36 // as a utility, and is never itself instantiated.
35 // The Operator class is intended to be used as a utility, and is never itself
36 // instantiated.
3737 void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
3838 void *operator new(size_t s) LLVM_DELETED_FUNCTION;
3939 Operator() LLVM_DELETED_FUNCTION;
6565 typedef PointerIntPair UserRef;
6666
6767 private:
68 /// Copy ctor - do not implement
6968 Use(const Use &U) LLVM_DELETED_FUNCTION;
7069
7170 /// Destructor - Only for zap()
1818 unsigned ID;
1919
2020 private:
21 explicit OptSpecifier(bool); // DO NOT IMPLEMENT
21 explicit OptSpecifier(bool) LLVM_DELETED_FUNCTION;
2222
2323 public:
2424 OptSpecifier() : ID(0) {}
2828 /// a chunk at a time.
2929 class raw_ostream {
3030 private:
31 // Do not implement. raw_ostream is noncopyable.
3231 void operator=(const raw_ostream &) LLVM_DELETED_FUNCTION;
3332 raw_ostream(const raw_ostream &) LLVM_DELETED_FUNCTION;
3433
2828
2929 namespace {
3030 class AArch64MCCodeEmitter : public MCCodeEmitter {
31 AArch64MCCodeEmitter(const AArch64MCCodeEmitter &); // DO NOT IMPLEMENT
32 void operator=(const AArch64MCCodeEmitter &); // DO NOT IMPLEMENT
31 AArch64MCCodeEmitter(const AArch64MCCodeEmitter &) LLVM_DELETED_FUNCTION;
32 void operator=(const AArch64MCCodeEmitter &) LLVM_DELETED_FUNCTION;
3333 const MCInstrInfo &MCII;
3434 const MCSubtargetInfo &STI;
3535 MCContext &Ctx;
3737 namespace {
3838
3939 class R600MCCodeEmitter : public AMDGPUMCCodeEmitter {
40 R600MCCodeEmitter(const R600MCCodeEmitter &); // DO NOT IMPLEMENT
41 void operator=(const R600MCCodeEmitter &); // DO NOT IMPLEMENT
40 R600MCCodeEmitter(const R600MCCodeEmitter &) LLVM_DELETED_FUNCTION;
41 void operator=(const R600MCCodeEmitter &) LLVM_DELETED_FUNCTION;
4242 const MCInstrInfo &MCII;
4343 const MCRegisterInfo &MRI;
4444 const MCSubtargetInfo &STI;
3434 } IntFloatUnion;
3535
3636 class SIMCCodeEmitter : public AMDGPUMCCodeEmitter {
37 SIMCCodeEmitter(const SIMCCodeEmitter &); // DO NOT IMPLEMENT
38 void operator=(const SIMCCodeEmitter &); // DO NOT IMPLEMENT
37 SIMCCodeEmitter(const SIMCCodeEmitter &) LLVM_DELETED_FUNCTION;
38 void operator=(const SIMCCodeEmitter &) LLVM_DELETED_FUNCTION;
3939 const MCInstrInfo &MCII;
4040 const MCRegisterInfo &MRI;
4141 const MCSubtargetInfo &STI;