X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FVMCore%2FConstantFold.h;h=cd10f9d0c87fb861f3a78201dfaac2543fc2a5e3;hb=1718337cf7e42f38b34be31c7b74e9907a276584;hp=6135e5c563fccae3563fe203184f5037b2908308;hpb=e56096aa415f2983ff1aae19be2647630295c1df;p=oota-llvm.git diff --git a/lib/VMCore/ConstantFold.h b/lib/VMCore/ConstantFold.h index 6135e5c563f..cd10f9d0c87 100644 --- a/lib/VMCore/ConstantFold.h +++ b/lib/VMCore/ConstantFold.h @@ -62,9 +62,6 @@ protected: public: static AnnotationID AID; // AnnotationID for this class - // Unary Operators... - virtual Constant *op_not(const Constant *V) const = 0; - // Binary Operators... virtual Constant *add(const Constant *V1, const Constant *V2) const = 0; virtual Constant *sub(const Constant *V1, const Constant *V2) const = 0; @@ -128,11 +125,6 @@ private : }; -inline Constant *operator~(const Constant &V) { - return ConstRules::get(V)->op_not(&V); -} - - // Standard binary operators... inline Constant *operator+(const Constant &V1, const Constant &V2) { assert(V1.getType() == V2.getType() && "Constant types must be identical!"); @@ -224,7 +216,6 @@ Constant *ConstantFoldInstruction(Instruction *I); // Constant fold various types of instruction... Constant *ConstantFoldCastInstruction(const Constant *V, const Type *DestTy); -Constant *ConstantFoldUnaryInstruction(unsigned Opcode, const Constant *V); Constant *ConstantFoldBinaryInstruction(unsigned Opcode, const Constant *V1, const Constant *V2); Constant *ConstantFoldShiftInstruction(unsigned Opcode, const Constant *V1,