Add unimplemented destructor declarations to hopefully address

compiler warnings on windows (PR4714).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78934 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2009-08-13 20:43:13 +00:00
parent c6126e8f7e
commit 2907542a3f

View File

@ -67,6 +67,7 @@ public:
/// despite that operator having the potential for overflow. /// despite that operator having the potential for overflow.
/// ///
class OverflowingBinaryOperator : public Operator { class OverflowingBinaryOperator : public Operator {
~OverflowingBinaryOperator(); // do not implement
public: public:
/// hasNoUnsignedOverflow - Test whether this operation is known to never /// hasNoUnsignedOverflow - Test whether this operation is known to never
/// undergo unsigned overflow. /// undergo unsigned overflow.
@ -106,6 +107,7 @@ public:
/// AddOperator - Utility class for integer addition operators. /// AddOperator - Utility class for integer addition operators.
/// ///
class AddOperator : public OverflowingBinaryOperator { class AddOperator : public OverflowingBinaryOperator {
~AddOperator(); // do not implement
public: public:
static inline bool classof(const AddOperator *) { return true; } static inline bool classof(const AddOperator *) { return true; }
static inline bool classof(const Instruction *I) { static inline bool classof(const Instruction *I) {
@ -123,6 +125,7 @@ public:
/// SubOperator - Utility class for integer subtraction operators. /// SubOperator - Utility class for integer subtraction operators.
/// ///
class SubOperator : public OverflowingBinaryOperator { class SubOperator : public OverflowingBinaryOperator {
~SubOperator(); // do not implement
public: public:
static inline bool classof(const SubOperator *) { return true; } static inline bool classof(const SubOperator *) { return true; }
static inline bool classof(const Instruction *I) { static inline bool classof(const Instruction *I) {
@ -140,6 +143,7 @@ public:
/// MulOperator - Utility class for integer multiplication operators. /// MulOperator - Utility class for integer multiplication operators.
/// ///
class MulOperator : public OverflowingBinaryOperator { class MulOperator : public OverflowingBinaryOperator {
~MulOperator(); // do not implement
public: public:
static inline bool classof(const MulOperator *) { return true; } static inline bool classof(const MulOperator *) { return true; }
static inline bool classof(const Instruction *I) { static inline bool classof(const Instruction *I) {
@ -157,6 +161,7 @@ public:
/// SDivOperator - An Operator with opcode Instruction::SDiv. /// SDivOperator - An Operator with opcode Instruction::SDiv.
/// ///
class SDivOperator : public Operator { class SDivOperator : public Operator {
~SDivOperator(); // do not implement
public: public:
/// isExact - Test whether this division is known to be exact, with /// isExact - Test whether this division is known to be exact, with
/// zero remainder. /// zero remainder.
@ -182,6 +187,7 @@ public:
}; };
class GEPOperator : public Operator { class GEPOperator : public Operator {
~GEPOperator(); // do not implement
public: public:
/// isInBounds - Test whether this is an inbounds GEP, as defined /// isInBounds - Test whether this is an inbounds GEP, as defined
/// by LangRef.html. /// by LangRef.html.