Move the implementation of the clone method for these classes to
[oota-llvm.git] / include / llvm / InstrTypes.h
index de90dc5bc76b6046e189a139f24a2aab94d0fe26..bac363ee8bdb67ca7942c21e48a1054ef7292642 100644 (file)
@@ -162,9 +162,7 @@ public:
     return static_cast<BinaryOps>(Instruction::getOpcode());
   }
 
-  virtual Instruction *clone() const {
-    return create(getOpcode(), Operands[0], Operands[1]);
-  }
+  virtual BinaryOperator *clone() const;
 
   /// swapOperands - Exchange the two operands to this instruction.
   /// This instruction is safe to use on any binary instruction and