diff options
author | Guochun Shi <gshi1@uiuc.edu> | 2003-04-06 23:58:44 +0000 |
---|---|---|
committer | Guochun Shi <gshi1@uiuc.edu> | 2003-04-06 23:58:44 +0000 |
commit | 105cb77d6fd3f29f3777d07f522bd878fc0b6a21 (patch) | |
tree | 8cebefff83662dd1e2ef8b24d1b4155dcadc0546 /include | |
parent | 6fbe5fbce1f3ff901eb3685290e19f5973ff588a (diff) | |
download | external_llvm-105cb77d6fd3f29f3777d07f522bd878fc0b6a21.zip external_llvm-105cb77d6fd3f29f3777d07f522bd878fc0b6a21.tar.gz external_llvm-105cb77d6fd3f29f3777d07f522bd878fc0b6a21.tar.bz2 |
added some memory for clone function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5765 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Instruction.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 5f61b2d..56f4ebf 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -23,6 +23,8 @@ class Instruction : public User { friend class SymbolTableListTraits<Instruction, BasicBlock, Function, ilist_traits<Instruction> >; 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; } |