diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 5f61b2d4108..56f4ebf3aac 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -23,6 +23,8 @@ class Instruction : public User { friend class SymbolTableListTraits >; void setParent(BasicBlock *P); +private: + Instruction* cln; //the newest cloned instruction protected: unsigned iType; // InstructionType: The opcode of the instruction @@ -42,7 +44,9 @@ public: /// * The instruction has no name /// virtual Instruction *clone() const = 0; - + Instruction * getClone(){return cln;} + void setClone(Instruction* _cln){cln=_cln;} + void clearClone(){cln=NULL;} // Accessor methods... // inline const BasicBlock *getParent() const { return Parent; }