summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorGuochun Shi <gshi1@uiuc.edu>2003-04-06 23:58:44 +0000
committerGuochun Shi <gshi1@uiuc.edu>2003-04-06 23:58:44 +0000
commit09abd1aeaf5ba312ef74e323fa8b293ac6cedc9d (patch)
tree1daddc733ee5d47da7679026ea1e554003880ea3 /llvm
parentb250dc6909a6291e8fcd51947535ccceb052972a (diff)
downloadbcm5719-llvm-09abd1aeaf5ba312ef74e323fa8b293ac6cedc9d.tar.gz
bcm5719-llvm-09abd1aeaf5ba312ef74e323fa8b293ac6cedc9d.zip
added some memory for clone function
llvm-svn: 5765
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Instruction.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/include/llvm/Instruction.h b/llvm/include/llvm/Instruction.h
index 5f61b2d4108..56f4ebf3aac 100644
--- a/llvm/include/llvm/Instruction.h
+++ b/llvm/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; }
OpenPOWER on IntegriCloud